- Get link
- X
- Other Apps
the_content
is the core hook of the content.
Description
apply_filters( 'the_content', $post_post_content );
Usage
$post_post_content = apply_filters( 'the_content', $post_post_content ); if ( !empty( $post_post_content ) ) { // everything has led up to this point... }
// define the the_content callback function filter_the_content( $post_post_content ) { // make filter magic happen here... return $post_post_content; }; // add the filter add_filter( 'the_content', 'filter_the_content', 10, 1 );
// remove the filter remove_filter( 'the_content', 'filter_the_content', 10, 1 );
Comments
Post a Comment