helpful_shortcode_defaults

With this you can extend the shortcode attributes of Helpful. So you can add your own attributes to Helpful’s shortcode or change existing values.

/**
 * Can be used to extend the shortcode atts.
 *
 * @param array $defaults default shortcode atts.
 * @return array
 */
add_filter('helpful_shortcode_defaults', function (array $defaults) {
    $defaults['color'] = '#89c058';
    return $defaults;
});

Was this post helpful?

Top