wphooks.info - default_page_template_title

default_page_template_title

(trunk - 5.0-alpha-43293)

The hook occurs in the following 2 files

wp-admin/includes/meta-boxes.php:
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
<?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:
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
	<?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 ) : ?>