ACF_Location_Post_Status::get_values
Returns an array of possible values for this rule type.
Method of the class: ACF_Location_Post_Status{}
No Hooks.
Returns
Array.
Usage
$ACF_Location_Post_Status = new ACF_Location_Post_Status(); $ACF_Location_Post_Status->get_values( $rule );
- $rule(array) (required)
- A location rule.
Changelog
| Since 5.9.0 | Introduced. |
ACF_Location_Post_Status::get_values() ACF Location Post Status::get values code ACF 6.8.8
public function get_values( $rule ) {
global $wp_post_statuses;
// Append to choices.
$choices = array();
if ( $wp_post_statuses ) {
foreach ( $wp_post_statuses as $status ) {
$choices[ $status->name ] = $status->label;
}
}
return $choices;
}