Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Action Group taxonomy

// Register Custom Taxonomy
function action_group() {

	$labels = array(
		'name'                       => _x( 'Action Groups', 'Taxonomy General Name', 'actions' ),
		'singular_name'              => _x( 'Action Group', 'Taxonomy Singular Name', 'actions' ),
		'menu_name'                  => __( 'Action Group', 'actions' ),
		'all_items'                  => __( 'All Action Group Items', 'actions' ),
		'parent_item'                => __( 'Parent Action Group', 'actions' ),
		'parent_item_colon'          => __( 'Parent Action Group:', 'actions' ),
		'new_item_name'              => __( 'New Group Name', 'actions' ),
		'add_new_item'               => __( 'Add New Group', 'actions' ),
		'edit_item'                  => __( 'Edit Action Group', 'actions' ),
		'update_item'                => __( 'Update Action Group', 'actions' ),
		'view_item'                  => __( 'View Action Group', 'actions' ),
		'separate_items_with_commas' => __( 'Separate group items with commas', 'actions' ),
		'add_or_remove_items'        => __( 'Add or remove group items', 'actions' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'actions' ),
		'popular_items'              => __( 'Popular Action Groups', 'actions' ),
		'search_items'               => __( 'Search Action Groups', 'actions' ),
		'not_found'                  => __( 'Not Found', 'actions' ),
		'no_terms'                   => __( 'No Action Groups', 'actions' ),
		'items_list'                 => __( 'Action Group list', 'actions' ),
		'items_list_navigation'      => __( 'Action Groups list navigation', 'actions' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => false,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'action_groups', array( 'actions' ), $args );

}
add_action( 'init', 'action_group', 0 );