Priority needed for the 'add_filter' function?
-
Hi Till,
I’ve just created a filter in my functions.php file to filter the content of a custom post type that I’m using to create widgets in my site’s header and footer areas, because those widgets contain email addresses that I want to obfuscate with your plugin.
So I’ve created this:
add_filter('ww_content', 'eae_encode_emails');
…which is the correct tag to use for this custom post type. It seems to be working correctly like this, however I’m wondering if I also should specify a priority as well? Because on your FAQ page you state that “the default filter priorty is 1000” so I’m not sure if I should add this priority to the above filter too?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Priority needed for the 'add_filter' function?’ is closed to new replies.