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'.


Top ↑

Source

File: wp-admin/includes/class-wp-users-list-table.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.6.0The $which parameter was added.
3.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.