default_page_template_title WordPress Filter Hook

This hook is called when the default page template is selected for a new page. It can be used to change the page template title displayed in the dropdown menu on the page edit screen.

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 on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.