restrict_manage_sites
Fires before the Filter button on the MS sites list table.
Использование
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: Either 'top' or 'bottom'. * * @return void */ function wp_kama_restrict_manage_sites_action( $which ){ // action... }
- $which(строка)
- The location of the extra table nav markup: Either 'top' or 'bottom'.
Список изменений
С версии 5.3.0 | Введена. |
Где вызывается хук
restrict_manage_sites
wp-admin/includes/class-wp-ms-sites-list-table.php 338
do_action( 'restrict_manage_sites', $which );