Support » Plugin: bbPress Votes » How to remove actions

  • Hi, thank you for the plugin, first of all. Works great!

    I’m trying to customize the appearance and would like to not show certain parts.

    In bbpress-votes.php, line 143 we have:

    add_action( 'bbp_theme_after_reply_author_details', array($this, 'display_reply_author_karma'));
     add_action( 'bbp_theme_after_topic_started_by', array($this, 'display_topic_score'));

    How can I remove these actions in my functions.php theme file? I tried basic remove_action and searched for how to remove when referencing the plugin class $this but had no luck.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author grosbouff


    I would suggest using CSS to hide to items, it’s easier.
    But it should also work using this (not tested) :

    remove_action( 'bbp_theme_after_reply_author_details', array(bbpvotes(), 'display_reply_author_karma'));
    remove_action( 'bbp_theme_after_topic_started_by', array(bbpvotes(), 'display_topic_score'));

    Tell me if it works !

    Thank you for your reply! This ended up working for me.

    remove_action( 'bbp_theme_after_topic_started_by', array(bbP_Votes::instance(), 'display_topic_score'));
    remove_action( 'bbp_theme_after_reply_author_details', array(bbP_Votes::instance(), 'display_reply_author_karma'));
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove actions’ is closed to new replies.