Skip to:
Content
Pages
Categories
Search
Top
Bottom

how to remove component from bp notifications?

  • @stevengnk88

    Participant

    Hi guys,
    I have a wordpress forum with wpforo and buddypress. I tried Wp-Ulike and Activity Reaction for BP (https://github.com/WPPlugins/activity-reactions-for-buddypress) plugin for “like function” just like Facebook.
    But I noticed the plugin conflict with mycred and wpforo for Notifications. The notifications that relate to “like function” from WP-Ulike or Activity Reaction were show Blank on title and description.
    It made me feel a bit awkward, because it kept sending empty messages whenever someone reacted on buddypress activity-stream.
    So I want to remove (exclude) all those notification from buddypress notifications.
    I define component_name and component_action from myphpadmin of the plugin are ‘reaction’ and ‘ai_reaction_bp
    So how to do that?

Viewing 7 replies - 1 through 7 (of 7 total)
  • @prashantvatsh

    Participant

    Hi,

    Please paste following code in bp-custom.php or in your child theme’s functions.php:
    remove_filter( 'bp_notifications_get_notifications_for_user', 'ai_bp_reaction_custom_format_buddypress_notifications');

    Hopefully, this will work for you.

    Thanks

    @stevengnk88

    Participant

    Thanks for the support. But it’s not work bro, still receive the empty message.

    @prashantvatsh

    Participant

    Have you tried asking at the plugin support forum?

    @stevengnk88

    Participant

    Yes,I did, but no answer.

    @prashantvatsh

    Participant

    Ok, so what I am doing is that I am navigating you to the file where it is coded and I guess it can only be commented in the plugin code itself and we can not remove it by the hook.
    File: https://github.com/WPPlugins/activity-reactions-for-buddypress/blob/master/class/class.php
    on line 1044 and 1062

    If it does not help then there are two filters on line 1165 and 1165, we can try removing them also.

    Thanks

    @stevengnk88

    Participant

    so sad my PHP skill was zero, i’m not a backend dev 🙁
    but I’ll try it
    you mean I need to insert “#” at the 1044 and 1062 line?

    @prashantvatsh

    Participant

    Yes, please try that once.

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