restrict_manage_users WordPress Action Hook
The restrict_manage_users hook allows you to restrict the manage users screen by user role. This can be useful if you want to only allow certain user roles to access the manage users screen.
do_action( 'restrict_manage_users', string $which ) #
Fires just before the closing div containing the bulk role-change controls in the Users list table.
Parameters
- $which
(string)The location of the extra table nav markup: 'top' or 'bottom'.
Source
Changelog
Version | Description |
---|---|
4.6.0 | The $which parameter was added. |
3.5.0 | Introduced. |