ACF_Location_Page_Template::get_valuespublicACF 5.9.0

Returns an array of possible values for this rule type.

Method of the class: ACF_Location_Page_Template{}

Hooks from the method

Returns

Array.

Usage

$ACF_Location_Page_Template = new ACF_Location_Page_Template();
$ACF_Location_Page_Template->get_values( $rule );
$rule(array) (required)
A location rule.

Changelog

Since 5.9.0 Introduced.

ACF_Location_Page_Template::get_values() code ACF 6.0.4

public function get_values( $rule ) {
	$post_templates = acf_get_post_templates();
	return array_merge(
		array(
			'default' => apply_filters( 'default_page_template_title', __( 'Default Template', 'acf' ) ),
		),
		$post_templates['page']
	);
}