WordPress.org

Ready to get started?Download WordPress

Forums

Facebook Comments by Fat Panda
[resolved] Remove Meta Tags (4 posts)

  1. bkernan
    Member
    Posted 1 year ago #

    Hey all,

    want to remove meta tags added by this plugin. Nothing I do works:

    remove_action( 'admin_enqueue_scripts', array( 'FatPandaFacebookComments', 'wp_head' ) );
    remove_action( 'admin_enqueue_scripts', array( $FatPandaFacebookComments, 'wp_head' ) );
    remove_action( 'admin_enqueue_scripts', array( $WPFBC, 'wp_head' ) );
    remove_action( 'admin_enqueue_scripts', array( &$WPFBC, 'wp_head' ) );

    Any suggestions? Thanks!
    Brittney

    http://wordpress.org/extend/plugins/fatpanda-facebook-comments/

  2. bkernan
    Member
    Posted 1 year ago #

    Oops, replace 'admin_enque_scripts' with 'wp_head' does not work either.

    I'm pretty sure the problem is that I need to pass an instance (or the instance of the initial class FatPandaFacebookComments) instead of a string. But the only instance I see that is created ($WPFBC) is not globally accessible, and FatPandaFacebookComments's construct is called without creating a var for that class.

    Updating the plugin code is not an option, and creating another instance of the class did not work either.

    Hmmm

  3. bkernan
    Member
    Posted 1 year ago #

    SO stoked. This hack works:

    add to your functions.php

    //fake SharePress so Fat Panda wont print ogs
    if ( !class_exists('SharePress') ) {
    class SharePress {};
    }

  4. ThorWEB
    Member
    Posted 11 months ago #

    Will this fix the duplicated tags? I have to use FB debug after posting a new entry/page :S otherwise I can't share the link on FB or comment it on my site...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic