default_page_template_title хук-фильтрACF 5.9.0

Это хук WordPress - default_page_template_title. Плагин его просто использует.

Returns an array of possible values for this rule type.

Использование

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(строка)
The display value for the default page template title.
$context(строка)
Where the option label is displayed. Possible values include 'meta-box' or 'quick-edit'.

Список изменений

С версии 5.9.0 Введена.

Где вызывается хук

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 85
'default' => apply_filters( 'default_page_template_title', __( 'Default Template', 'acf' ) ),
acf/includes/locations/class-acf-location-page-template.php 73
'default' => apply_filters( 'default_page_template_title', __( 'Default Template', 'acf' ) ),

Где используется хук в Advanced Custom Fields PRO

Использование не найдено.