RIOCM – Type annonce Taxonomy
// Register Custom Taxonomy
function register_type_annonce_taxonomy() {
$labels = array(
'name' => _x( 'Ad Types', 'Taxonomy General Name', 'riocm-cpt' ),
'singular_name' => _x( 'Ad Type', 'Taxonomy Singular Name', 'riocm-cpt' ),
'menu_name' => __( 'Ad Type', 'riocm-cpt' ),
'all_items' => __( 'All Ad Types', 'riocm-cpt' ),
'parent_item' => __( 'Parent Ad Type', 'riocm-cpt' ),
'parent_item_colon' => __( 'Parent Ad Type:', 'riocm-cpt' ),
'new_item_name' => __( 'New Ad Type Name', 'riocm-cpt' ),
'add_new_item' => __( 'Add New Ad Type', 'riocm-cpt' ),
'edit_item' => __( 'Edit Ad Type', 'riocm-cpt' ),
'update_item' => __( 'Update Ad Type', 'riocm-cpt' ),
'view_item' => __( 'View Ad Type', 'riocm-cpt' ),
'separate_items_with_commas' => __( 'Separate ad types with commas', 'riocm-cpt' ),
'add_or_remove_items' => __( 'Add or removead types', 'riocm-cpt' ),
'choose_from_most_used' => __( 'Choose from the most used', 'riocm-cpt' ),
'popular_items' => __( 'Popular Ad Types', 'riocm-cpt' ),
'search_items' => __( 'Search Ad Types', 'riocm-cpt' ),
'not_found' => __( 'Not Found', 'riocm-cpt' ),
'no_terms' => __( 'No ad types', 'riocm-cpt' ),
'items_list' => __( 'Ad types list', 'riocm-cpt' ),
'items_list_navigation' => __( 'Ad types list navigation', 'riocm-cpt' ),
);
$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( 'type_annonce', array( 'annonce' ), $args );
}
add_action( 'init', 'register_type_annonce_taxonomy', 0 );