the_content
The Subscribe2 the content hook.
Description
Parameters (1)
- 0. $content (unknown)
- The content.
Usage
- To run the hook, copy the example below.
- $content = apply_filters( 'the_content', $content );
- if ( !empty( $content ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the the_content callback
- function filter_the_content( $content ) {
- // make filter magic happen here...
- return $content;
- };
- // add the filter
- add_filter( 'the_content', 'filter_the_content', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'the_content', 'filter_the_content', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /classes/class-s2-core.php
- $content = apply_filters('the_content', $content);