ACF_Location_Page_Type::get_valuespublicACF 5.9.0

Returns an array of possible values for this rule type.

Method of the class: ACF_Location_Page_Type{}

No Hooks.

Returns

array.

Usage

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

Changelog

Since 5.9.0 Introduced.

ACF_Location_Page_Type::get_values() code ACF 6.8.8

public function get_values( $rule ) {
	return array(
		'front_page' => __( 'Front Page', 'acf' ),
		'posts_page' => __( 'Posts Page', 'acf' ),
		'top_level'  => __( 'Top Level Page (no parent)', 'acf' ),
		'parent'     => __( 'Parent Page (has children)', 'acf' ),
		'child'      => __( 'Child Page (has parent)', 'acf' ),
	);
}