public function registerEventTags()
    {
        $labels = array(
            'name'                  => _x('Event tags', 'Taxonomy plural name', 'event-integration'),
            'singular_name'         => _x('Event tag', 'Taxonomy singular name', 'event-integration'),
            'search_items'          => __('Search tags', 'event-integration'),
            'popular_items'         => __('Popular tags', 'event-integration'),
            'all_items'             => __('All tags', 'event-integration'),
            'parent_item'           => __('Parent', 'event-integration'),
            'parent_item_colon'     => __('Parent', 'event-integration'),
            'edit_item'             => __('Edit tag', 'event-integration'),
            'update_item'           => __('Update', 'event-integration'),
            'add_new_item'          => __('Add new tag', 'event-integration'),
            'new_item_name'         => __('New tag', 'event-integration'),
            'add_or_remove_items'   => __('Add or remove tags', 'event-integration'),
            'choose_from_most_used' => __('Choose from most used tags', 'event-integration'),
            'menu_name'             => __('Tags', 'event-integration'),
        );

        $args = array(
            'labels'                => $labels,
            'public'                => true,
            'show_in_nav_menus'     => true,
            'show_admin_column'     => true,
            'hierarchical'          => false,
            'show_tagcloud'         => true,
            'show_ui'               => false,
            'query_var'             => true,
            'rewrite'               => true
        );

        register_taxonomy('event_tags', array('event'), $args);
    }
public function registerEventTags()
    {
        $labels = array(
            'name'                  => _x('Event tags', 'Taxonomy plural name', 'event-integration'),
            'singular_name'         => _x('Event tag', 'Taxonomy singular name', 'event-integration'),
            'search_items'          => __('Search tags', 'event-integration'),
            'popular_items'         => __('Popular tags', 'event-integration'),
            'all_items'             => __('All tags', 'event-integration'),
            'parent_item'           => __('Parent', 'event-integration'),
            'parent_item_colon'     => __('Parent', 'event-integration'),
            'edit_item'             => __('Edit tag', 'event-integration'),
            'update_item'           => __('Update', 'event-integration'),
            'add_new_item'          => __('Add new tag', 'event-integration'),
            'new_item_name'         => __('New tag', 'event-integration'),
            'add_or_remove_items'   => __('Add or remove tags', 'event-integration'),
            'choose_from_most_used' => __('Choose from most used tags', 'event-integration'),
            'menu_name'             => __('Tags', 'event-integration'),
        );

        $args = array(
            'labels'                => $labels,
            'public'                => true,
            'show_in_nav_menus'     => true,
            'show_admin_column'     => true,
            'hierarchical'          => false,
            'show_tagcloud'         => true,
            'show_ui'               => false,
            'query_var'             => true,
            'rewrite'               => true
        );

        register_taxonomy('event_tags', array('event'), $args);
    }
public function registerEventTags ( ) { $ labels = array ( 'name' => _x ( 'Event tags' , 'Taxonomy plural name' , 'event-integration' ) , 'singular_name' => _x ( 'Event tag' , 'Taxonomy singular name' , 'event-integration' ) , 'search_items' => __ ( 'Search tags' , 'event-integration' ) , 'popular_items' => __ ( 'Popular tags' , 'event-integration' ) , 'all_items' => __ ( 'All tags' , 'event-integration' ) , 'parent_item' => __ ( 'Parent' , 'event-integration' ) , 'parent_item_colon' => __ ( 'Parent' , 'event-integration' ) , 'edit_item' => __ ( 'Edit tag' , 'event-integration' ) , 'update_item' => __ ( 'Update' , 'event-integration' ) , 'add_new_item' => __ ( 'Add new tag' , 'event-integration' ) , 'new_item_name' => __ ( 'New tag' , 'event-integration' ) , 'add_or_remove_items' => __ ( 'Add or remove tags' , 'event-integration' ) , 'choose_from_most_used' => __ ( 'Choose from most used tags' , 'event-integration' ) , 'menu_name' => __ ( 'Tags' , 'event-integration' ) , ) ; $ args = array ( 'labels' => $ labels , 'public' => true , 'show_in_nav_menus' => true , 'show_admin_column' => true , 'hierarchical' => false , 'show_tagcloud' => true , 'show_ui' => false , 'query_var' => true , 'rewrite' => true ) ; register_taxonomy ( 'event_tags' , array ( 'event' ) , $ args ) ; }
Register event tags as taxonomy
Register event tags as taxonomy