quick_edit_dropdown_pages_args
Filter HookDescription
Filters the arguments used to generate the Quick Edit page-parent drop-down.Hook Information
File Location |
wp-admin/includes/class-wp-posts-list-table.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1866 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$dropdown_args
|
An array of arguments passed to wp_dropdown_pages(). |
bool
|
$bulk
|
A flag to denote if it's a bulk action. |
Usage Examples
Basic Usage
<?php
// Hook into quick_edit_dropdown_pages_args
add_filter('quick_edit_dropdown_pages_args', 'my_custom_filter', 10, 2);
function my_custom_filter($dropdown_args, $bulk) {
// Your custom filtering logic here
return $dropdown_args;
}
Source Code Context
wp-admin/includes/class-wp-posts-list-table.php:1866
- How this hook is used in WordPress core
<?php
1861 * @see wp_dropdown_pages()
1862 *
1863 * @param array $dropdown_args An array of arguments passed to wp_dropdown_pages().
1864 * @param bool $bulk A flag to denote if it's a bulk action.
1865 */
1866 $dropdown_args = apply_filters( 'quick_edit_dropdown_pages_args', $dropdown_args, $bulk );
1867
1868 wp_dropdown_pages( $dropdown_args );
1869 ?>
1870 </label>
1871
PHP Documentation
<?php
/**
* Filters the arguments used to generate the Quick Edit page-parent drop-down.
*
* @since 2.7.0
* @since 5.6.0 The `$bulk` parameter was added.
*
* @see wp_dropdown_pages()
*
* @param array $dropdown_args An array of arguments passed to wp_dropdown_pages().
* @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.