Didn't find anything? Ask your questions in the forum.
Documentation Filters helpful_shortcode_atts


Help: If you do not know how to execute or save your own PHP code, you can find help here: How to execute PHP code on your WordPress website

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
function custom_function( $atts ) {
	$atts['heading'] = 'My custom heading!';
	return $atts;

add_filter( 'helpful_shortcode_atts', 'custom_function' );

Was this post helpful?