Store Tax
if ( ! function_exists( 'custom_store' ) ) {
// Register Custom Taxonomy
function custom_store() {
$labels = array(
'name' => _x( 'Store', 'Taxonomy General Name', 'gomedia' ),
'singular_name' => _x( 'Store', 'Taxonomy Singular Name', 'gomedia' ),
'menu_name' => __( 'Store', 'gomedia' ),
'all_items' => __( 'All Stores', 'gomedia' ),
'parent_item' => __( 'Parent Store', 'gomedia' ),
'parent_item_colon' => __( 'Parent Store:', 'gomedia' ),
'new_item_name' => __( 'New Store Name', 'gomedia' ),
'add_new_item' => __( 'Add New Store', 'gomedia' ),
'edit_item' => __( 'Edit Store', 'gomedia' ),
'update_item' => __( 'Update Store', 'gomedia' ),
'view_item' => __( 'View Store', 'gomedia' ),
'separate_items_with_commas' => __( 'Separate Stores with commas', 'gomedia' ),
'add_or_remove_items' => __( 'Add or remove Stores', 'gomedia' ),
'choose_from_most_used' => __( 'Choose from the most used', 'gomedia' ),
'popular_items' => __( 'Popular Stores', 'gomedia' ),
'search_items' => __( 'Search Stores', 'gomedia' ),
'not_found' => __( 'Not Found', 'gomedia' ),
'no_terms' => __( 'No Stores', 'gomedia' ),
'items_list' => __( 'Items list', 'gomedia' ),
'items_list_navigation' => __( 'Items list navigation', 'gomedia' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
);
register_taxonomy( 'tax-store', array( 'coupon' ), $args );
}
add_action( 'init', 'custom_store', 0 );
}