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

Top ↑

See also


Top ↑

Parameters

$dropdown_args

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

$post

(WP_Post)The current post.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.