ACF_Location_Current_User::get_values
Returns an array of possible values for this rule type.
Method of the class: ACF_Location_Current_User{}
No Hooks.
Returns
Array.
Usage
$ACF_Location_Current_User = new ACF_Location_Current_User(); $ACF_Location_Current_User->get_values( $rule );
- $rule(array) (required)
- A location rule.
Changelog
| Since 5.9.0 | Introduced. |
ACF_Location_Current_User::get_values() ACF Location Current User::get values code ACF 6.8.8
public function get_values( $rule ) {
return array(
'logged_in' => __( 'Logged in', 'acf' ),
'viewing_front' => __( 'Viewing front end', 'acf' ),
'viewing_back' => __( 'Viewing back end', 'acf' ),
);
}