Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbPress add action for keymasters & moderators

  • @kbaldac

    Participant

    WP version: 4.6.1, bbPress version: 2.5.11, link: one-name.org

    I want to add an action called ‘Response’ only visible to keymasters and moderators and appearing next to the ‘Close’ action when editing a topic. I want them to be able to click on this to add [RESPONSE] to the front of the topic title. How do I do that?

    I have something similar when someone presses ‘Close’ that adds [CLOSED] to the topic title but it doesn’t add a new action for keymasters and moderators:

    function forum_closed_topics() {
    $topic_id = bbp_get_topic_id();
    if ( get_post_type( $topic_id ) == bbp_get_topic_post_type() && bbp_is_topic_closed( $topic_id ) )
    echo ‘[CLOSED]’;
    }
    add_action( ‘bbp_theme_before_topic_title’, ‘forum_closed_topics’ );

    Thanks.

  • You must be logged in to reply to this topic.
Skip to toolbar