apply_filters( 'page_attributes_dropdown_pages_args', array $dropdown_args, WP_Post $post )

Filters the arguments used to generate a Pages drop-down element.


Top ↑

See also

Top ↑


$dropdown_args array
Array of arguments used to generate the pages drop-down.
$post WP_Post
The current post.

Top ↑


File: wp-admin/includes/meta-boxes.php. View all references

$dropdown_args = apply_filters( 'page_attributes_dropdown_pages_args', $dropdown_args, $post );

Top ↑


Version Description
3.3.0 Introduced.

Top ↑

User Contributed Notes

  1. Skip to note 1 content
    Contributed by gpius

    This hook is not working with Gutenberg / Block Editor

    “The following conditions is assumed to make it working:
    Classic Editor is in use, since Gutenberg/Block Editor is rendered by Javascript, it requires another solutions and so far I am not sure if there is override option yet.”

    Override method for Gutenberg/Block Editor
    Please use the filter rest_{$this->post_type}_query to override the query

    Open Issue:


You must log in before being able to contribute a note or feedback.