helpful_the_content

Filter the content of the_content after Helpful is 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 $content
 * @param int $post_id
 * @return string
 */
add_filter('helpful_the_content', function (string $content, int $post_id) {
    return $content;
}, 10, 2);

Was this post helpful?

Top