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

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


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

File: wp-admin/includes/meta-boxes.php. View all references

$default_title = apply_filters( 'default_page_template_title', __( 'Default template' ), 'meta-box' );


Top ↑

Changelog

Changelog
Version Description
4.1.0 Introduced.

Top ↑

User Contributed Notes

  1. Skip to note 1 content
    Contributed by Steven Lin

    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.