Configuration

Default configuration is set in the plugin settings, in the WordPress admin panel. It's also possible to set the configuration in the wp-config.php file, using the FINDSTR_SERVER_SETTINGS constant.

Example of configuration in wp-config.php:

    define( 'FINDSTR_SERVER_SETTINGS', array(
        'serverUrl'     => '', // server host
        'indexUID'      => '', // index name
        'publicKeyUid'  => '', // public Key UID (Optional)
        'publicKey'     => '', // public Key
        'privateKey'    => '', // private Key
    ) );

Settings in filesystem

It's possible to store the settings in the filesystem, using the findstr_settings_file_stored filter.
This is useful when you want to version the settings in your theme.

/**
 * This filter set the findstr settings to be stored in files
 */
add_filter( 'findstr_settings_file_stored', '__return_true' );

Update channel

The update channel can be set in the wp-config.php file, using the FINDSTR_UPDATE_CHANNEL constant. By now, the available channels are stable and beta.

    define( 'FINDSTR_UPDATE_CHANNEL', 'beta' );