Created
April 8, 2018 04:07
-
-
Save hawkidoki/c3eeeffadb6fe638609765924adf7148 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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