default_page_template_title

default_page_template_title

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('default_page_template_title') is found 3 times:

  • /wp-admin/edit-form-blocks.php line 167
    $available_templates = wp_get_theme()->get_page_templates( get_post( $post->ID ) );
    $available_templates = ! empty( $available_templates ) ? array_replace(
    	array(
    		/** This filter is documented in wp-admin/includes/meta-boxes.php */
    		'' => apply_filters( 'default_page_template_title', __( 'Default template' ), 'rest-api' ),
    	),
    	$available_templates
    ) : $available_templates;
    
    // Lock settings.
    $user_id = wp_check_post_lock( $post->ID );
    
  • /wp-admin/includes/class-wp-posts-list-table.php line 1888
    							<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>
    
    
  • /wp-admin/includes/meta-boxes.php line 1063
    		 * @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' ) ) : ?>