restrict_manage_users
Fires just before the closing div containing the bulk role-change controls in the Users list table.
Использование
add_action( 'restrict_manage_users', 'wp_kama_restrict_manage_users_action' ); /** * Function for `restrict_manage_users` action-hook. * * @param string $which The location of the extra table nav markup: 'top' or 'bottom'. * * @return void */ function wp_kama_restrict_manage_users_action( $which ){ // action... }
- $which(строка)
- The location of the extra table nav markup: 'top' or 'bottom'.
Список изменений
С версии 3.5.0 | Введена. |
С версии 4.6.0 | The $which parameter was added. |
Где вызывается хук
restrict_manage_users
wp-admin/includes/class-wp-users-list-table.php 325
do_action( 'restrict_manage_users', $which );