/** * Register the topic tag taxonomy * * @since bbPress (r2464) * @uses register_taxonomy() To register the taxonomy */ public static function register_taxonomies() { // Register the topic-tag taxonomy register_taxonomy(bbp_get_topic_tag_tax_id(), bbp_get_topic_post_type(), apply_filters('bbp_register_topic_taxonomy', array('labels' => bbp_get_topic_tag_tax_labels(), 'rewrite' => bbp_get_topic_tag_tax_rewrite(), 'capabilities' => bbp_get_topic_tag_caps(), 'update_count_callback' => '_update_post_term_count', 'query_var' => true, 'show_tagcloud' => true, 'hierarchical' => false, 'show_in_nav_menus' => false, 'public' => true, 'show_ui' => bbp_allow_topic_tags() && current_user_can('bbp_topic_tags_admin')))); }
/** * Register the topic tag taxonomy * * @since bbPress (r2464) * @uses register_taxonomy() To register the taxonomy */ public static function register_taxonomies() { // Define local variable(s) $topic_tag = array(); // Topic tag labels $topic_tag['labels'] = array('name' => __('Topic Tags', 'bbpress'), 'singular_name' => __('Topic Tag', 'bbpress'), 'search_items' => __('Search Tags', 'bbpress'), 'popular_items' => __('Popular Tags', 'bbpress'), 'all_items' => __('All Tags', 'bbpress'), 'edit_item' => __('Edit Tag', 'bbpress'), 'update_item' => __('Update Tag', 'bbpress'), 'add_new_item' => __('Add New Tag', 'bbpress'), 'new_item_name' => __('New Tag Name', 'bbpress'), 'view_item' => __('View Topic Tag', 'bbpress')); // Topic tag rewrite $topic_tag['rewrite'] = array('slug' => bbp_get_topic_tag_tax_slug(), 'with_front' => false); // Register the topic tag taxonomy register_taxonomy(bbp_get_topic_tag_tax_id(), bbp_get_topic_post_type(), apply_filters('bbp_register_topic_taxonomy', array('labels' => $topic_tag['labels'], 'rewrite' => $topic_tag['rewrite'], 'capabilities' => bbp_get_topic_tag_caps(), 'update_count_callback' => '_update_post_term_count', 'query_var' => true, 'show_tagcloud' => true, 'hierarchical' => false, 'public' => true, 'show_ui' => bbp_allow_topic_tags() && current_user_can('bbp_topic_tags_admin')))); }