Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: default_page_template_title

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
837 /**
838  * Filters the title of the default page template displayed in the drop-down.
839  *
840  * @since 4.1.0
841  *
842  * @param string $label   The display value for the default page template title.
843  * @param string $context Where the option label is displayed. Possible values
844  *                        include 'meta-box' or 'quick-edit'.
845  */
846 $default_title = apply_filters( 'default_page_template_title',  __( 'Default Template' ), 'meta-box' );
847 ?>
848 <option value="default"><?php echo esc_html( $default_title ); ?></option>
849 <?php page_template_dropdown($template); ?>
850 </select>
851 <?php
852      } ?>
853 <p><strong><?php _e('Order') ?></strong></p>
854 <p><label class="screen-reader-text" for="menu_order"><?php _e('Order') ?></label><input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo esc_attr($post->menu_order) ?>" /></p>
855 <?php if ( 'page' == $post->post_type && get_current_screen()->get_help_tabs() ) { ?>