wppaste
WordPress

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

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

Compatibility

WordPress
since 3.3.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$dropdown_argsarray
Array of arguments used to generate the pages drop-down.
$postWP_Post
The current post.

Where this hook fires · 1

  • wp-admin/includes/meta-boxes.php:1025page_attributes_meta_box()

Source code

		 *		 * @see wp_dropdown_pages()		 *		 * @param array   $dropdown_args Array of arguments used to generate the pages drop-down.		 * @param WP_Post $post          The current post.		 */		$dropdown_args = apply_filters( 'page_attributes_dropdown_pages_args', $dropdown_args, $post );		$pages         = wp_dropdown_pages( $dropdown_args );		if ( ! empty( $pages ) ) :			?><p class="post-attributes-label-wrapper parent-id-label-wrapper"><label class="post-attributes-label" for="parent_id"><?php _e( 'Parent' ); ?></label></p>			<?php echo $pages; ?>			<?php

Changelog

Introduced in 3.3.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.