apply_filters( 'default_page_template_title', string $label, string $context )

Filters the title of the default page template displayed in the drop-down.


Parameters Parameters

$label

(string) The display value for the default page template title.

$context

(string) Where the option label is displayed. Possible values include 'meta-box' or 'quick-edit'.


Top ↑

Source Source

File: wp-admin/includes/meta-boxes.php

View on Trac



Top ↑

Changelog Changelog

Changelog
Version Description
4.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

  1. Skip to note 1 content
    Contributed by stevenlinx

    Example migrated from Codex:

    Modify the title of the default page template displayed in the drop-down.

    add_filter( 'default_page_template_title', 'filter_function_name', 10, 2 );
    
    function filter_function_name( $label, $context ) {
      return __( 'Custom Page Template Title', 'textdomain' );
    }
    

You must log in before being able to contribute a note or feedback.