WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
1007 | * Filters the arguments used to generate a Pages drop-down element. |
1008 | * |
1009 | * @since 3.3.0 |
1010 | * |
1011 | * @see wp_dropdown_pages() |
1012 | * |
1013 | * @param array $dropdown_args Array of arguments used to generate the pages drop-down. |
1014 | * @param WP_Post $post The current post. |
1015 | */ |
1016 | $dropdown_args = apply_filters( 'page_attributes_dropdown_pages_args', $dropdown_args, $post ); |
1017 | $pages = wp_dropdown_pages( $dropdown_args ); |
1018 | if ( ! empty( $pages ) ) : |
1019 | ?> |
1020 | <p class="post-attributes-label-wrapper parent-id-label-wrapper"><label class="post-attributes-label" for="parent_id"><?php _e( 'Parent' ); ?></label></p> |
1021 | <?php echo $pages; ?> |
1022 | <?php |
1023 | endif; // End empty pages check. |
1024 | endif; // End hierarchical check. |
1025 |
|