Browse: Home / Hooks /

learndash_remove_template_content_filter

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 #

File: includes/class-ld-cpt-instance.php


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 #

Changelog
Version Description
3.1.0 Introduced.