plugin add_filter
-
I am using a plugin that is using add_filter to attach a function to the_content function like this:
add_filter(‘the_content’, ‘attachedfunction’, 100);
Now, I want attachedfunction to do different things based on what section (not necessarily page) the_content is being called from.
The approach coming to my mind is create my own version of the_content function and add this line to my plugin
add_filter(‘the_content2’, ‘attachedfunction2’, 100);
anybody have an less clumsy approach?
The topic ‘plugin add_filter’ is closed to new replies.