wphooks.info - page_attributes_dropdown_pages_args

page_attributes_dropdown_pages_args

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-admin/includes/meta-boxes.php:
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
		/**
		 * Filters the arguments used to generate a Pages drop-down element.
		 *
		 * @since 3.3.0
		 *
		 * @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"><label class="post-attributes-label" for="parent_id"><?php _e( 'Parent' ); ?></label></p>
			<?php echo $pages; ?>
			<?php
		endif; // end empty pages check
	endif;  // end hierarchical check.