GPO App Categories
if ( ! function_exists( 'gpo_app_cats' ) ) {
// Register Custom Taxonomy
function gpo_app_cats() {
$labels = array(
'name' => _x( 'GPO App Categories', 'Taxonomy General Name', 'f4d' ),
'singular_name' => _x( 'GPO App Category', 'Taxonomy Singular Name', 'f4d' ),
'menu_name' => __( 'GPO App Categories', 'f4d' ),
'all_items' => __( 'All Items', 'f4d' ),
'parent_item' => __( 'Parent Item', 'f4d' ),
'parent_item_colon' => __( 'Parent Item:', 'f4d' ),
'new_item_name' => __( 'New Item Name', 'f4d' ),
'add_new_item' => __( 'Add New Item', 'f4d' ),
'edit_item' => __( 'Edit Item', 'f4d' ),
'update_item' => __( 'Update Item', 'f4d' ),
'view_item' => __( 'View GPO App Category', 'f4d' ),
'separate_items_with_commas' => __( 'Separate items with commas', 'f4d' ),
'add_or_remove_items' => __( 'Add or remove GPO App Categories', 'f4d' ),
'choose_from_most_used' => __( 'Choose from the most used', 'f4d' ),
'popular_items' => __( 'Popular Items', 'f4d' ),
'search_items' => __( 'Search Items', 'f4d' ),
'not_found' => __( 'GPO App Categories Not Found', 'f4d' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => false,
'update_count_callback' => 'gpo_app_count',
);
register_taxonomy( 'gpo_cats', array( 'pet_owner', 'petfile', 'pet_guardians' ), $args );
}
add_action( 'init', 'gpo_app_cats', 0 );
}