-
-
Save Pebblo/23b9f231126a4df8c347f3e11e16706c to your computer and use it in GitHub Desktop.
Example of how to remove the schema,org data from EE.
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
<?php //Please do not include the opening PHP tag if you already have one. | |
function tw_ee_remove_json_linked_data_for_event() { | |
$Front_Controller = EE_Registry::instance()->load_core('Front_Controller', array(), false); | |
remove_action('wp_print_scripts', array($Front_Controller, 'wp_print_scripts')); | |
} | |
add_action( 'template_redirect', 'tw_ee_remove_json_linked_data_for_event', 10 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment