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'
.
Source
File: wp-admin/includes/meta-boxes.php
.
View all references
$default_title = apply_filters( 'default_page_template_title', __( 'Default template' ), 'meta-box' );
Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Example migrated from Codex:
Modify the title of the default page template displayed in the drop-down.