Skip to:
Content
Pages
Categories
Search
Top
Bottom

How can I stop bbpress replies from appearing in buddypress activity


  • kikismedia
    Participant

    @kikismedia

    Please is there a way I can do this
    Stop the bbpress replies from. Showing in buddypress activity

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

  • Robin W
    Moderator

    @robin-w

    probably a buddypress Q, so can you ask there, but do come back if you get no answer – not promising I can fix though !

    https://buddypress.org/support/


    kikismedia
    Participant

    @kikismedia

    Here is the code they assisted me with on buddydev

    /**
    * Modify activity args
    *
    * @param array $r Activity args.
    *
    * @return bool
    */
    function buddydev_modify_record_activity_args( $r ) {

    if ( $r[‘type’] && in_array( $r[‘type’], array( ‘bbp_reply_create’, ‘bbp_reply_edit’ ) ) ) {
    $r = false;
    }

    return $r;
    }
    add_filter( ‘bbp_after_record_activity_parse_args’, ‘buddydev_modify_record_activity_args’ );

    And it’s worked

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