Want to filter views_edit in user list table? The hook for that screen is based on ‘views_’ . $this->screen->id, so it should be:
1 2 3 4 5 6 7 8 | add_filter( 'views_users', 'modify_views_users_so_15295853' ); function modify_views_users_so_15295853( $views ) { // Manipulate $views return $views; } |
The content of $views in my system is:
1 2 3 4 5 6 7 | Array ( [all] => <a href='users.php' class="current">All <span class="count">(7)</span></a> [administrator] => <a href='users.php?role=administrator'>Administrator <span class="count">(1)</span></a> [editor] => <a href='users.php?role=editor'>Editor <span class="count">(1)</span></a> [subscriber] => <a href='users.php?role=subscriber'>Subscriber <span class="count">(5)</span></a> ) |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.