Action hook 'restrict_manage_users'

in WP Core File wp-admin/includes/class-wp-users-list-table.php at line 330

View Source

restrict_manage_users

Action Hook
Description
Fires just before the closing div containing the bulk role-change controls in the Users list table.

Hook Information

File Location wp-admin/includes/class-wp-users-list-table.php View on GitHub
Hook Type Action
Line Number 330

Hook Parameters

Type Name Description
string $which The location of the extra table nav markup: 'top' or 'bottom'.

Usage Examples

Basic Usage
<?php
// Hook into restrict_manage_users
add_action('restrict_manage_users', 'my_custom_function', 10, 1);

function my_custom_function($which) {
    // Your custom code here
}

Source Code Context

wp-admin/includes/class-wp-users-list-table.php:330 - How this hook is used in WordPress core
<?php
 325  		 * @since 3.5.0
 326  		 * @since 4.6.0 The `$which` parameter was added.
 327  		 *
 328  		 * @param string $which The location of the extra table nav markup: 'top' or 'bottom'.
 329  		 */
 330  		do_action( 'restrict_manage_users', $which );
 331  		?>
 332  		</div>
 333  		<?php
 334  		/**
 335  		 * Fires immediately following the closing "actions" div in the tablenav for the users

PHP Documentation

<?php
/**
		 * Fires just before the closing div containing the bulk role-change controls
		 * in the Users list table.
		 *
		 * @since 3.5.0
		 * @since 4.6.0 The `$which` parameter was added.
		 *
		 * @param string $which The location of the extra table nav markup: 'top' or 'bottom'.
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-admin/includes/class-wp-users-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.