Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hawkidoki/c3eeeffadb6fe638609765924adf7148 to your computer and use it in GitHub Desktop.
Save hawkidoki/c3eeeffadb6fe638609765924adf7148 to your computer and use it in GitHub Desktop.
<?php
add_action('init', 'hwk_acf_taxonomy_register');
function hwk_acf_taxonomy_register(){
register_taxonomy('acf-field-group-type', array('acf-field-group'), array(
'labels' => array(
'name' => _x( 'ACF Field Groups Types', 'taxonomy general name', 'textdomain' ),
'singular_name' => _x( 'Type', 'taxonomy singular name', 'textdomain' ),
'search_items' => __( 'Search Types', 'textdomain' ),
'all_items' => __( 'All Types', 'textdomain' ),
'parent_item' => __( 'Parent Type', 'textdomain' ),
'parent_item_colon' => __( 'Parent Type:', 'textdomain' ),
'edit_item' => __( 'Edit Type', 'textdomain' ),
'update_item' => __( 'Update Type', 'textdomain' ),
'add_new_item' => __( 'Add New Type', 'textdomain' ),
'new_item_name' => __( 'New Type Name', 'textdomain' ),
'menu_name' => __( 'Type', 'textdomain' ),
),
'hierarchical' => true,
'public' => false,
'show_ui' => true,
'show_admin_column' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => false,
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment