default_page_template_title filter-hookACF 5.9.0

This is a WordPress - default_page_template_title hook. The plugin just uses it.

Returns an array of possible values for this rule type.

Usage

add_filter( 'default_page_template_title', 'wp_kama_default_page_template_title_filter', 10, 2 );

/**
 * Function for `default_page_template_title` filter-hook.
 * 
 * @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'.
 *
 * @return string
 */
function wp_kama_default_page_template_title_filter( $label, $context ){

	// filter...
	return $label;
}
$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'.

Changelog

Since 5.9.0 Introduced.

Where the hook is called

ACF_Location_Post_Template::get_values()
default_page_template_title
ACF_Location_Page_Template::get_values()
default_page_template_title
acf/includes/locations/class-acf-location-post-template.php 94
'default' => apply_filters( 'default_page_template_title', __( 'Default Template', 'acf' ), 'meta-box' ),
acf/includes/locations/class-acf-location-page-template.php 82
'default' => apply_filters( 'default_page_template_title', __( 'Default Template', 'acf' ), 'meta-box' ),

Where the hook is used in Advanced Custom Fields PRO

Usage not found.