ACF_Location_Post_Type::get_values()
Returns an array of possible values for this rule type.
Метод класса: ACF_Location_Post_Type{}
Хуков нет.
Возвращает
Массив
.
Использование
$ACF_Location_Post_Type = new ACF_Location_Post_Type(); $ACF_Location_Post_Type->get_values( $rule );
- $rule(массив) (обязательный)
- A location rule.
Список изменений
С версии 5.9.0 | Введена. |
Код ACF_Location_Post_Type::get_values() ACF Location Post Type::get values ACF 6.0.4
public function get_values( $rule ) { // Get post types. $post_types = acf_get_post_types( array( 'show_ui' => 1, 'exclude' => array( 'attachment' ), ) ); // Return array of [type => label]. return acf_get_pretty_post_types( $post_types ); }