I want to validate this deprecated function:
add_filter('user_has_cap', array(&$this, 'filter_user_has_cap'), 10, 3);
It needs to use roles or capatibilies, so I guess 10 is the admin level, so I could use "edit_pages":
add_filter('user_has_cap', array(&$this, 'filter_user_has_cap'), 'edit_pages', 3);
But what is argument "3"?
Thank you Oliver
10is the filter priority, and is an argument toadd_filter(), not to the callback. – Chip Bennett Aug 11 '11 at 16:59