Created
August 11, 2018 06:10
-
-
Save iWebbers/3ac30b6bedb5613227303ecef7693385 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Remove the default WooCommerce 3 JSON-LD structured data format | |
function iw_remove_output_structured_data() { | |
remove_action( 'wp_footer', array( WC()->structured_data, 'output_structured_data' ), 10 ); // Frontend pages | |
remove_action( 'woocommerce_email_order_details', array( WC()->structured_data, 'output_email_structured_data' ), 30 ); // Emails | |
} | |
add_action( 'init', 'iw_remove_output_structured_data' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment