Would like to remove the OG meta tags smartcrawl creates

I was hoping that I would not have to hack up the plugin. Is there anything I can add to the functions file to disable the hook?

  • Dimitris

    Hello there Todd,

    hope you're doing good today! :slight_smile:

    Could you please add the following snippet in the functions.php file of your child theme. This should do the trick!

    // Hide OG Tags in SmartCrawl -- add this to functions.php of the active theme.
    add_action( 'after_setup_theme', 'remove_dispatch_og_tags_injection' );
    
    if (class_exists('Wds_OpenGraph_Printer')) {
        function remove_dispatch_og_tags_injection(){
    
    	    $Wds_OpenGraph_Printer = Wds_OpenGraph_Printer::get();
    	    remove_action( 'wp_head', array( $Wds_OpenGraph_Printer, 'dispatch_og_tags_injection' ) );
    
    	}
    }

    Warm regards,
    Dimitris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.