Using the 'timed_content_filter_override' filter
-
The
timed_content_filter_override
filter will let you modify or change thetimed_content_filter
that’s used to process your timed content. In the example below, thetimed_content_filter
filter is replaced with thethe_content
filter
(you’d put the below code in your theme’sfunctions.php
).// Override timed_content_filter function override_timed_content_filter( $the_filter ) { // $the_filter contains the string 'timed_content_filter' // which is the default filter for timed content. // // You could perform some conditional logic to decide which // filter to use, change the 'timed_content_filter' filter, // or define a new filter of your own. Whatever you do, // this function needs to return the name of a filter. return "the_content"; } add_filter("timed_content_filter_override", "override_timed_content_filter", 10, 2 );
- The topic ‘Using the 'timed_content_filter_override' filter’ is closed to new replies.