Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Created April 1, 2019 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pebblo/23b9f231126a4df8c347f3e11e16706c to your computer and use it in GitHub Desktop.
Save Pebblo/23b9f231126a4df8c347f3e11e16706c to your computer and use it in GitHub Desktop.
Example of how to remove the schema,org data from EE.
<?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