• I want to tailor my own Open Graph meta tags. How can I prevent this plugin from printing the Open Graph meta tags?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Varun Dubey

    (@vapvarun)

    @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);
        } );
    }
    Thread Starter vinifera7

    (@vinifera7)

    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 ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove Open Graph meta tags’ is closed to new replies.