Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disable Ability to Reply


  • sharon9923
    Participant

    @sharon9923

    We plan to use anonymous topic creation with topics requiring approval by moderator. We would like to disable replies. Is this possible? I looked at custom roles but don’t see how I would remove the ability to reply when an anonymous person can create a topic.

Viewing 3 replies - 1 through 3 (of 3 total)

  • Robin W
    Moderator

    @robin-w

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    add_filter( 'bbp_current_user_can_publish_replies', 'rew_do_not_allow_anon' );
    
    function rew_do_not_allow_anon ($retval) {
    	if ( ! is_user_logged_in() ) {
    		$retval = false ;
    	}
    return $retval ;
    }

    sharon9923
    Participant

    @sharon9923

    Thank you so much!


    Robin W
    Moderator

    @robin-w

    🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar