Meetings Type Taxonomy
if ( ! function_exists( 'anp_meetings_type' ) ) {
// Register Custom Taxonomy
function anp_meetings_type() {
$labels = array(
'name' => _x( 'Meeting Types', 'Taxonomy General Name', 'anp_meetings' ),
'singular_name' => _x( 'Meeting Type', 'Taxonomy Singular Name', 'anp_meetings' ),
'menu_name' => __( 'Meeting Types', 'anp_meetings' ),
'all_items' => __( 'All Meeting Types', 'anp_meetings' ),
'parent_item' => __( 'Parent Meeting Type', 'anp_meetings' ),
'parent_item_colon' => __( 'Parent Meeting Type:', 'anp_meetings' ),
'new_item_name' => __( 'New Meeting Type Name', 'anp_meetings' ),
'add_new_item' => __( 'Add New Meeting Type', 'anp_meetings' ),
'edit_item' => __( 'Edit Meeting Type', 'anp_meetings' ),
'update_item' => __( 'Update Meeting Type', 'anp_meetings' ),
'view_item' => __( 'View Meeting Type', 'anp_meetings' ),
'separate_items_with_commas' => __( 'Separate meeting types with commas', 'anp_meetings' ),
'add_or_remove_items' => __( 'Add or remove meeting types', 'anp_meetings' ),
'choose_from_most_used' => __( 'Choose from the most used', 'anp_meetings' ),
'popular_items' => __( 'Popular Meeting Types', 'anp_meetings' ),
'search_items' => __( 'Search Meeting Types', 'anp_meetings' ),
'not_found' => __( 'Not Found', 'anp_meetings' ),
);
$rewrite = array(
'slug' => 'meeting_type',
'with_front' => true,
'hierarchical' => false,
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
'query_var' => 'meeting_type',
'rewrite' => $rewrite,
);
register_taxonomy( 'anp_meetings_type', array( 'anp_meetings', ' anp_decisions' ), $args );
}
// Hook into the 'init' action
add_action( 'init', 'anp_meetings_type', 0 );
}