wphooks.info - default_page_template_title

default_page_template_title

(trunk - 5.0-alpha-42177)

The hook occurs in the following 2 files

wp-admin/includes/meta-boxes.php:
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
<?php
/**
 * Filters the title of the default page template displayed in the drop-down.
 *
 * @since 4.1.0
 *
 * @param string $label   The display value for the default page template title.
 * @param string $context Where the option label is displayed. Possible values
 *                        include 'meta-box' or 'quick-edit'.
 */
$default_title = apply_filters( 'default_page_template_title',  __( 'Default Template' ), 'meta-box' );
?>
<option value="default"><?php echo esc_html( $default_title ); ?></option>
<?php page_template_dropdown( $template, $post->post_type ); ?>
</select>
<?php endif; ?>
<?php if ( post_type_supports( $post->post_type, 'page-attributes' ) ) : ?>
<p class="post-attributes-label-wrapper"><label class="post-attributes-label" for="menu_order"><?php _e( 'Order' ); ?></label></p>
<input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo esc_attr( $post->menu_order ); ?>" />
<?php
wp-admin/includes/class-wp-posts-list-table.php:
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
	<?php if ( 0 < count( get_page_templates( null, $screen->post_type ) ) ) : ?>
		<label>
			<span class="title"><?php _e( 'Template' ); ?></span>
			<select name="page_template">
<?php	if ( $bulk ) : ?>
				<option value="-1"><?php _e( '&mdash; No Change &mdash;' ); ?></option>
<?php	endif; // $bulk ?>
                <?php
				/** This filter is documented in wp-admin/includes/meta-boxes.php */
				$default_title = apply_filters( 'default_page_template_title',  __( 'Default Template' ), 'quick-edit' );
                ?>
				<option value="default"><?php echo esc_html( $default_title ); ?></option>
				<?php page_template_dropdown( '', $screen->post_type ) ?>
			</select>
		</label>
	<?php endif; ?>

	<?php if ( count( $flat_taxonomies ) && !$bulk ) : ?>