Changeset 6056 for trunk/src/bbpress.php
- Timestamp:
- 06/05/2016 06:27:54 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/bbpress.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bbpress.php
r5951 r6056 227 227 // Post type identifiers 228 228 $this->forum_post_type = apply_filters( 'bbp_forum_post_type', 'forum' ); 229 $this->forum_mod_tax_id = apply_filters( 'bbp_forum_mod_tax_id', 'forum-mod' );230 229 $this->topic_post_type = apply_filters( 'bbp_topic_post_type', 'topic' ); 231 230 $this->topic_tag_tax_id = apply_filters( 'bbp_topic_tag_tax_id', 'topic-tag' ); … … 663 662 * 664 663 * @since 2.0.0 bbPress (r2464) Added bbp_get_topic_tag_tax_id() taxonomy 665 * @since 2.6.0 bbPress (r5834) Added bbp_get_forum_mod_tax_id() taxonomy666 664 * 667 665 * @uses register_taxonomy() To register the taxonomy … … 673 671 * @uses current_user_can() To check if the current user can edit/delete tags 674 672 * @uses bbp_get_forum_post_type() To get the forum post type 675 * @uses bbp_get_forum_mod_tax_labels() To get the forum moderator taxonomy label676 * @uses bbp_get_forum_mod_caps() To check the forum moderator capabilities677 * @uses bbp_allow_forum_mods() To check if forum moderators are allowed678 673 * @uses current_user_can() To check if the current user can edit/delete forums 679 674 */ … … 697 692 ) 698 693 ) ); 699 700 // Register the forum-mod taxonomy.701 register_taxonomy(702 bbp_get_forum_mod_tax_id(),703 bbp_get_forum_post_type(),704 apply_filters( 'bbp_register_forum_moderator_taxonomy', array(705 'labels' => bbp_get_forum_mod_tax_labels(),706 'capabilities' => bbp_get_forum_mod_caps(),707 'update_count_callback' => '_update_post_term_count',708 'query_var' => false,709 'show_tagcloud' => true,710 'hierarchical' => false,711 'show_in_menu' => true,712 'show_in_nav_menus' => false,713 'public' => false,714 'show_ui' => bbp_allow_forum_mods() && current_user_can( 'bbp_forum_mods_admin' ),715 )716 ) );717 694 } 718 695
Note: See TracChangeset
for help on using the changeset viewer.