helpful_options

This allows you to adjust the default values of Helpful. These are always used as default when Helpful is installed. This might be interesting if you want to include Helpful in customer projects and want to define how Helpful is configured.

/**
 * Allows you to set the default after a Helfpful installation.
 * These are used whenever Helpful is freshly installed.
 *
 * @param array $options default options.
 * @return array
 */
add_filter('helpful_options', function (array $options) {
    return $options;
});

Was this post helpful?

Top