How to validate this deprecated function

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”:

Read More
add_filter('user_has_cap', array(&$this, 'filter_user_has_cap'), 'edit_pages', 3);

But what is argument “3”?

Thank you
Oliver

Related posts

Leave a Reply

1 comment

  1. First of all, it’s not the add_filter() call that you’re supposed to be modifying, but the callback: ‘filter_user_has_cap’, i.e. go to where that method is defined and change the user level to ‘edit_pages’.

    Fixing deprecated notices is easier with the Log Deprecated Notices plugin.