Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove “reply” button


  • potatolove
    Participant

    @potatolove

    Hi there,
    i’m looking for a solution to remove the “reply” button in a topic (or otherwise a solution for closing a topic automated after it has been published).

    My goal is, to just let users create a topic, which shouldn’t be possible to be replied to. I already removed the form for replies, but the button in the topic is still there (i want to get rid of it).

    Thanks in advance!

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_reply_admin_links', 'rew_remove_reply') ;
    add_filter ('bbp_topic_admin_links', 'rew_remove_reply') ;
    
    function rew_remove_reply ($links) {
    	unset ($links['reply']) ;
    return $links ;	
    }

    potatolove
    Participant

    @potatolove

    Works perfect! Exactly what i was looking for.

    Thank you!


    Robin W
    Moderator

    @robin-w

    great – glad you are fixed !

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