So, after more than a couple more hours of banging my head against this, I figured this out. I’m sharing the solution just in case someone else finds themselves here looking for something similar.
The answer to the first question can be found in wp-admin/admin.php.
It starts when users.php loads admin.php via a require_once call.
Inside admin.php, if the page= attribute is part of the (GET) URL, the associated value is used to invoke both the “load-{$page_hook}” and the $page_hook actions. In this case:
do_action('load-users_user-role-editor')
and
do_action('users_user-role-editor')
The answer to the second question can be found in the plugin itself. The difficulty in finding it was that the tag was built up through a concatenation of strings and thus not directly findable with grep or find in vim.
-
This reply was modified 5 years, 7 months ago by mikemayer67.