@vinifera7 it’s defined inside
buddypress-activity-social-share\includes\class-buddypress-share.php
You can use following as code snippet to disable it
if( class_exists('Buddypress_Share_Public') ){
add_action( 'init', function(){
remove_action( 'bp_notifications_get_notifications_for_user', array('Buddypress_Share_Public' , 'bp_share_opengraph' ), 999);
} );
}
That snippet doesn’t seem to work. I am using version 2.3.0 of BuddyPress Activity Social Share.
Line 186 of class-buddypress-share.php shows:
$this->loader->add_action( 'wp_head', $plugin_public, 'bp_share_opengraph', 999 );
Doesn’t this mean the bp_share_opengraph callback is hooked to wp_head, not bp_notifications_get_notifications_for_user ?