quick_edit_dropdown_authors_args хук-фильтр . WP 5.6.0
Filters the arguments used to generate the Quick Edit authors drop-down.
Использование
add_filter( 'quick_edit_dropdown_authors_args', 'filter_function_name_9961', 10, 2 ); function filter_function_name_9961( $users_opt, $bulk ){ // filter... return $users_opt; }
- $users_opt(массив)
- An array of arguments passed to wp_dropdown_users().
- $bulk(true/false)
- A flag to denote if it's a bulk action.
Список изменений
С версии 5.6.0 | Введена. |
Где вызывается хук
quick_edit_dropdown_authors_args
wp-admin/includes/class-wp-posts-list-table.php 1600
$users_opt = apply_filters( 'quick_edit_dropdown_authors_args', $users_opt, $bulk );