ACF_Post_Type::get_settings_array
Gets the default settings array for an ACF post type.
Метод класса: ACF_Post_Type{}
Хуков нет.
Возвращает
Массив.
Использование
$ACF_Post_Type = new ACF_Post_Type(); $ACF_Post_Type->get_settings_array();
Код ACF_Post_Type::get_settings_array() ACF Post Type::get settings array ACF 6.4.2
public function get_settings_array() {
return array(
// ACF-specific settings.
'ID' => 0,
'key' => '',
'title' => '',
'menu_order' => 0,
'active' => true,
'post_type' => '', // First $post_type param passed to register_post_type().
'advanced_configuration' => false,
'import_source' => '',
'import_date' => '',
// Settings passed to register_post_type().
'labels' => array(
'name' => '',
'singular_name' => '',
'menu_name' => '',
'all_items' => '',
'add_new' => '',
'add_new_item' => '',
'edit_item' => '',
'new_item' => '',
'view_item' => '',
'view_items' => '',
'search_items' => '',
'not_found' => '',
'not_found_in_trash' => '',
'parent_item_colon' => '',
'archives' => '',
'attributes' => '',
'featured_image' => '',
'set_featured_image' => '',
'remove_featured_image' => '',
'use_featured_image' => '',
'insert_into_item' => '',
'uploaded_to_this_item' => '',
'filter_items_list' => '',
'filter_by_date' => '',
'items_list_navigation' => '',
'items_list' => '',
'item_published' => '',
'item_published_privately' => '',
'item_reverted_to_draft' => '',
'item_scheduled' => '',
'item_updated' => '',
'item_link' => '',
'item_link_description' => '',
),
'description' => '',
'public' => true, // WP defaults false, ACF defaults true.
'hierarchical' => false,
'exclude_from_search' => false,
'publicly_queryable' => true,
'show_ui' => true,
'show_in_menu' => true,
'admin_menu_parent' => '',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'show_in_rest' => true,
'rest_base' => '',
'rest_namespace' => 'wp/v2',
'rest_controller_class' => 'WP_REST_Posts_Controller',
'menu_position' => null,
'menu_icon' => '',
'rename_capabilities' => false,
'singular_capability_name' => 'post',
'plural_capability_name' => 'posts',
'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields' ),
'taxonomies' => array(),
'has_archive' => false,
'has_archive_slug' => '',
'rewrite' => array(
'permalink_rewrite' => 'post_type_key', // ACF-specific option.
'slug' => '',
'feeds' => false,
'pages' => true,
'with_front' => true,
),
'query_var' => 'post_type_key',
'query_var_name' => '', // ACF-specific option.
'can_export' => true,
'delete_with_user' => false,
'register_meta_box_cb' => '',
'enter_title_here' => '',
);
}