Documentation

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

helpful_the_content

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

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( $content, $post_id ) {
	return $content;
}, 10, 2 );

Was this post helpful?