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 Description

Top ↑

See also See also


Top ↑

Parameters Parameters

$dropdown_args

(array) Array of arguments used to generate the pages drop-down.

$post

(WP_Post) The current post.


Top ↑

Source Source

File: wp-admin/includes/meta-boxes.php

View on Trac



Top ↑

Changelog Changelog

Changelog
Version Description
3.3.0 Introduced.

Top ↑

User Contributed Notes 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: https://github.com/WordPress/gutenberg/issues/9089

    Source:
    https://wordpress.stackexchange.com/a/365451

Top ↑

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