ACF_Location_Post_Category::get_values
Returns an array of possible values for this rule type.
Method of the class: ACF_Location_Post_Category{}
No Hooks.
Returns
Array.
Usage
$ACF_Location_Post_Category = new ACF_Location_Post_Category(); $ACF_Location_Post_Category->get_values( $rule );
- $rule(array) (required)
- A location rule.
Changelog
| Since 5.9.0 | Introduced. |
ACF_Location_Post_Category::get_values() ACF Location Post Category::get values code ACF 6.0.4
public function get_values( $rule ) {
$choices = acf_get_taxonomy_terms( array( 'category' ) );
if ( $choices ) {
return reset( $choices );
}
return array();
}