page_attributes_dropdown_pages_args WordPress Filter Hook
The page_attributes_dropdown_pages_args hook allows you to modify the arguments that are used in the wp_dropdown_pages function when generating the page attributes dropdown on the page editing screen. This can be useful if you want to exclude certain pages from the dropdown or change the default value that is selected.
apply_filters( 'page_attributes_dropdown_pages_args', array $dropdown_args , WP_Post $post ) #
Filters the arguments used to generate a Pages drop-down element.
Description
See also
Parameters
- $dropdown_args
(array)Array of arguments used to generate the pages drop-down.
- $post
(WP_Post)The current post.
Source
Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |