[Plugin: Register Plus] Upgrading the Unverified Users page to a root-level menu page
-
Hey –
So I’ve been trying to make the Unverified Users page that Register Plus puts out when using the Admin Verify option a Root Menu Page rather than a subpage under Users. I perfectly understand if the plugin programmer or developer(s) don’t want to support this change – I would just appreciate it if you had any suggestions of things I could try off of the top of your heads.
So I’ve been trying to modify the following line of code (line 90 or thereabouts in my copy) from:
add_users_page( 'Unverified Users', 'Unverified Users', 10, 'unverified-users', array($this, 'Unverified') );
to:
add_users_page('Unverified Users','Unverified Users',10,__FILE__,'Unverified');
as per the example described in this codex article: https://codex.www.ads-software.com/Adding_Administration_Menus#Top-Level_menu.
Making this change will indeed create a root menu page called “Unverified Users.” But clicking on said page will return the following in place of any content:
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'Unverified' was given in .../wp-includes/plugin.php on line 339
Any clue what’s going on here? And what I can do to fix it? Thanks!
- The topic ‘[Plugin: Register Plus] Upgrading the Unverified Users page to a root-level menu page’ is closed to new replies.