I have several plugins, all of which are based on using objects to hold the plugin.
In one plugin class named "test_plugin" I have:
apply_filter('wp_list_pages', array(&$this, 'wp_list_pages'));
I would like to use the has_filter
function in one plugin to try to detect the presence of the other plugin.
I cant find any examples of the has_filter
function being used with an object based callback.
I have tried:
has_filter('wp_list_pages', array('test_plugin', 'wp_list_pages'));
But this only returns false. I have written some debugging output to display the contents of the $wp_filters
global variable and the callback is definitely registered in the $wp_filters
array.