learndash_remove_template_content_filter

apply_filters( 'learndash_remove_template_content_filter',  boolean  )

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 recusion.


Description #


Parameters #

(boolean) true Default true to remove the filter. Return false to not remove.


Source #

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


Examples #

 <?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 Introduced.