restrict_manage_sites
Fires before the Filter button on the MS sites list table.
Usage
add_action( 'restrict_manage_sites', 'wp_kama_restrict_manage_sites_action' ); /** * Function for `restrict_manage_sites` action-hook. * * @param string $which The location of the extra table nav markup: 'top' or 'bottom'. * * @return void */ function wp_kama_restrict_manage_sites_action( $which ){ // action... }
- $which(string)
- The location of the extra table nav markup: 'top' or 'bottom'.
Changelog
Since 5.3.0 | Introduced. |
Where the hook is called
restrict_manage_sites
wp-admin/includes/class-wp-ms-sites-list-table.php 338
do_action( 'restrict_manage_sites', $which );