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 |
|---|---|
| 564 | 'post_type' => $post->post_type, |
| 565 | 'exclude_tree' => $post->ID, |
| 566 | 'selected' => $post->post_parent, |
| 567 | 'name' => 'parent_id', |
| 568 | 'show_option_none' => __('(no parent)'), |
| 569 | 'sort_column' => 'menu_order, post_title', |
| 570 | 'echo' => 0, |
| 571 | ); |
| 572 | |
| 573 | $dropdown_args = apply_filters( 'page_attributes_dropdown_pages_args', $dropdown_args, $post ); |
| 574 | $pages = wp_dropdown_pages( $dropdown_args ); |
| 575 | if ( ! empty($pages) ) { |
| 576 | ?> |
| 577 | <p><strong><?php _e('Parent') ?></strong></p> |
| 578 | <label class="screen-reader-text" for="parent_id"><?php _e('Parent') ?></label> |
| 579 | <?php echo $pages; ?> |
| 580 | <?php |
| 581 | } // end empty pages check |
| 582 | } // end hierarchical check. |