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 |
|---|---|
| 732 | * Filter the arguments used to generate a Pages drop-down element. |
| 733 | * |
| 734 | * @since 3.3.0 |
| 735 | * |
| 736 | * @see wp_dropdown_pages() |
| 737 | * |
| 738 | * @param array $dropdown_args Array of arguments used to generate the pages drop-down. |
| 739 | * @param WP_Post $post The current WP_Post object. |
| 740 | */ |
| 741 | $dropdown_args = apply_filters( 'page_attributes_dropdown_pages_args', $dropdown_args, $post ); |
| 742 | $pages = wp_dropdown_pages( $dropdown_args ); |
| 743 | if ( ! empty($pages) ) { |
| 744 | ?> |
| 745 | <p><strong><?php _e('Parent') ?></strong></p> |
| 746 | <label class="screen-reader-text" for="parent_id"><?php _e('Parent') ?></label> |
| 747 | <?php echo $pages; ?> |
| 748 | <?php |
| 749 | } // end empty pages check |
| 750 | } // end hierarchical check. |