Post Topics From Dashboard (for all users)?
I’ve been fighting with how to enable the Topics CPT for all users in the dashboard and not having a great time. I thought I could, perhaps, filter the CPT registration to change the CPT caps and
show_uisettings, but no luck.
Even when I am able to get the Topics CPT to display for all users by commenting out the lines noted below as a test:
// Register Topic content type register_post_type( bbp_get_topic_post_type(), apply_filters( 'bbp_register_topic_post_type', array( 'labels' => bbp_get_topic_post_type_labels(), 'rewrite' => bbp_get_topic_post_type_rewrite(), 'supports' => bbp_get_topic_post_type_supports(), 'description' => __( 'bbPress Topics', 'bbpress' ), // 'capabilities' => bbp_get_topic_caps(), // 'capability_type' => array( 'topic', 'topics' ), 'menu_position' => 999999999999, 'has_archive' => ( 'forums' === bbp_show_on_root() ) ? bbp_get_topic_archive_slug() : false, 'exclude_from_search' => true, 'show_in_nav_menus' => false, 'public' => true, // 'show_ui' => current_user_can( 'bbp_topics_admin' ), 'can_export' => true, 'hierarchical' => false, 'query_var' => true, 'menu_icon' => '' ) ) );
Things still don’t completely work. Users can technically create a post, but can’t save the Forum in which the post is created.
The short of it is: I want users with the Participant Forum Role to be able to see the Topics CPT in the dashboard so they can create their posts here, mainly because it would be helpful for them to be able to Preview a topic before posting it. Out of the box, the front-end bbPress form does not allow for post previews.
Has anyone achieved this?
- You must be logged in to reply to this topic.