helpful_shortcode_atts

This allows you to overwrite the shortcode attributes of Helpful. This also overwrites the values defined in the Helpful settings.

/**
 * Can be used to replaced helpful shortcode atts.
 *
 * @param array $atts existing shortcode atts.
 * @return array
 */
add_filter('helpful_shortcode_atts', function (array $atts) {
    $atts['heading'] = 'My custom heading!';
    return $atts;
});

Was this post helpful?

Top