You appear to be a bot. Output may be restricted
Description
Implement "the_content" filter for the "opted_in" custom post typeNote: We need to respond each time this filter is invoked since it can get called during get_the_excerpt()! Unnecessarily in my opinion but that's WordPress for you.
Usage
$string = oiksp_the_content( $content );
Parameters
- $content
- ( string ) required –
Returns
string filtered contentSource
File name: oik-squeeze/oik-squeeze.phpLines:
1 to 16 of 16
function oiksp_the_content( $content ) { global $post; if ( doing_filter( 'get_the_excerpt') ) { return $content; } if ( doing_filter( 'save_post') ) { return $content; } if ( $post && $post->post_type == "opted_in" ) { oik_require( "shortcodes/oik-squeeze.php", "oik-squeeze" ); $content = oiksp_lazy_squeeze( $content ); } return( $content ); }