helpful_the_shortcode

Filters the contents of the shortcode after Helpful has been loaded. This is useful if you want to display content according to Helpful, or if you want to manipulate the content of Helpful afterwards.

/**
 * @param string $shortcode
 * @param int $post_id
 * @return string
 */
add_filter('helpful_the_shortcode', function (string $shortcode, int $post_id) {
    return $shortcode;
}, 10, 2);

Was this post helpful?

Top