ACF_Location_Post_Template::get_valuespublicACF 5.9.0

Returns an array of possible values for this rule type.

Method of the class: ACF_Location_Post_Template{}

Hooks from the method

Returns

Array.

Usage

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

Changelog

Since 5.9.0 Introduced.

ACF_Location_Post_Template::get_values() code ACF 6.8.8

public function get_values( $rule ) {
	return array_merge(
		array(
			'default' => apply_filters( 'default_page_template_title', __( 'Default Template', 'acf' ), 'meta-box' ),
		),
		acf_get_post_templates()
	);
}