quick_edit_dropdown_authors_args
Filter HookDescription
Filters the arguments used to generate the Quick Edit authors drop-down.Hook Information
File Location |
wp-admin/includes/class-wp-posts-list-table.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1761 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$users_opt
|
An array of arguments passed to wp_dropdown_users(). |
bool
|
$bulk
|
A flag to denote if it's a bulk action. |
Usage Examples
Basic Usage
<?php
// Hook into quick_edit_dropdown_authors_args
add_filter('quick_edit_dropdown_authors_args', 'my_custom_filter', 10, 2);
function my_custom_filter($users_opt, $bulk) {
// Your custom filtering logic here
return $users_opt;
}
Source Code Context
wp-admin/includes/class-wp-posts-list-table.php:1761
- How this hook is used in WordPress core
<?php
1756 * @see wp_dropdown_users()
1757 *
1758 * @param array $users_opt An array of arguments passed to wp_dropdown_users().
1759 * @param bool $bulk A flag to denote if it's a bulk action.
1760 */
1761 $users_opt = apply_filters( 'quick_edit_dropdown_authors_args', $users_opt, $bulk );
1762
1763 $authors = wp_dropdown_users( $users_opt );
1764
1765 if ( $authors ) {
1766 $authors_dropdown = '<label class="inline-edit-author">';
PHP Documentation
<?php
/**
* Filters the arguments used to generate the Quick Edit authors drop-down.
*
* @since 5.6.0
*
* @see wp_dropdown_users()
*
* @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.
*/
Quick Info
- Hook Type: Filter
- Parameters: 2
- File: wp-admin/includes/class-wp-posts-list-table.php
Related Hooks
Related hooks will be displayed here in future updates.