quick_edit_dropdown_authors_args
Filters the arguments used to generate the Quick Edit authors drop-down.
Использование
add_filter( 'quick_edit_dropdown_authors_args', 'wp_kama_quick_edit_dropdown_authors_args_filter', 10, 2 ); /** * Function for `quick_edit_dropdown_authors_args` filter-hook. * * @param array $users_opt An array of arguments passed to wp_dropdown_users(). * @param bool $bulk A flag to denote if it's a bulk action. * * @return array */ function wp_kama_quick_edit_dropdown_authors_args_filter( $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 1754
$users_opt = apply_filters( 'quick_edit_dropdown_authors_args', $users_opt, $bulk );