apply_filters( 'learndash_remove_template_content_filter', bool $remove_template_content_filter )
Remove the hook into the WP ‘the_content’ filter once we are in our handler. This will allow other templates to call the ‘the_content’ filter without causing recursion.
Description #
Parameters #
- $remove_template_content_filter
-
(bool) True to remove the filter. Default false.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for learndash_remove_template_content_filter filter.
*/
add_filter(
'learndash_remove_template_content_filter',
function( $remove_filter ) {
// May add any custom logic using $remove_filter.
// Always return $remove_filter.
return $remove_filter;
}
);
Changelog #
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |