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
1132
1133                <label>
1134                     <span class="title"><?php _e( 'Template' ); ?></span>
1135                     <select name="page_template">
1136      <?php     if ( $bulk ) : ?>
1137                          <option value="-1"><?php _e( '&mdash; No Change &mdash;' ); ?></option>
1138      <?php     endif; // $bulk ?>
1139                         <?php
1140                          /** This filter is documented in wp-admin/includes/meta-boxes.php */
1141                          $default_title = apply_filters( 'default_page_template_title',  __( 'Default Template' ), 'quick-edit' );
1142                         ?>
1143                          <option value="default"><?php echo esc_html( $default_title ); ?></option>
1144                          <?php page_template_dropdown() ?>
1145                     </select>
1146                </label>
1147
1148      <?php
1149                endif; // page post_type
1150           endif; // page-attributes