Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple: filter content generated by other plugins
#1
Sometimes it may be useful to filter content generated by another plugin.
This works only, if the filter method of the other plugin was called before yours.

So, there may be a dependency system between plugins or some kind of sort order.

Or.... Smile
Just a simple change within the existing theme function get_page_content().

By writing:
Code:
while ($content != exec_filter('content',$content))
{
    $content = exec_filter('content',$content);
}

instead of just
Code:
$content = exec_filter('content',$content);

it will be assured that there's nothing to do for any of the filters before the content is sent back.

Of course, this means a little more execution costs, but you may want to think about it.

Thanks
blazer82
Reply




Users browsing this thread: 1 Guest(s)