• Resolved hazmicz

    (@hazmicz)


    Hello, i would like to know, how can i disable og-tags from this plugin on my custom page. I tried remove action like this, but with no luck :/

    function remove_my_action() {
         remove_action( 'wp_head', array( 'Webdados_FB_Public', 'insert_meta_tags' ), 99999 );
    }
    add_action('wp_head', 'remove_my_action', 1);
Viewing 3 replies - 1 through 3 (of 3 total)
  • We can create a filter to globally disable the plugin tags.

    It will be called “fb_og_enabled” and you’ll be able to use it like this on the next version:

    add_filter( 'fb_og_enabled', 'my_fb_og_enabled' );
    function my_fb_og_enabled( $enabled ) {
        if ( is_singular() && get_the_ID()==21 ) $enabled=false;
        return $enabled;
    }

    Where 21 should be replaced by the custom page id.

    Thread Starter hazmicz

    (@hazmicz)

    OK – this filter will be available in the next version of this plugin (do you know a date)?

    Done on 2.0.6 that is live now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable OG tags on custom page’ is closed to new replies.