Action hook 'restrict_manage_sites'

in WP Core File wp-admin/includes/class-wp-ms-sites-list-table.php at line 338

View Source

restrict_manage_sites

Action Hook
Description
Fires before the Filter button on the MS sites list table.

Hook Information

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

Hook Parameters

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

Usage Examples

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

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

Source Code Context

wp-admin/includes/class-wp-ms-sites-list-table.php:338 - How this hook is used in WordPress core
<?php
 333  			 *
 334  			 * @since 5.3.0
 335  			 *
 336  			 * @param string $which The location of the extra table nav markup: Either 'top' or 'bottom'.
 337  			 */
 338  			do_action( 'restrict_manage_sites', $which );
 339  
 340  			$output = ob_get_clean();
 341  
 342  			if ( ! empty( $output ) ) {
 343  				echo $output;

PHP Documentation

<?php
/**
			 * Fires before the Filter button on the MS sites list table.
			 *
			 * @since 5.3.0
			 *
			 * @param string $which The location of the extra table nav markup: Either 'top' or 'bottom'.
			 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-admin/includes/class-wp-ms-sites-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.