Skip to content

Instantly share code, notes, and snippets.

@BeardedGinger
Created October 29, 2016 03:35
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 BeardedGinger/1b9e25fb609f92decff1597fe259d726 to your computer and use it in GitHub Desktop.
Save BeardedGinger/1b9e25fb609f92decff1597fe259d726 to your computer and use it in GitHub Desktop.
add_filter( 'tribe_events_widget_jsonld_enabled', __return_false );
add_action( 'tribe_events_after_list_widget', 'move_json_ld_tribe_widget_output' );
function move_json_ld_tribe_widget_output() {
$widget = new Tribe__Events__List_Widget();
Tribe__Events__JSON_LD__Event::instance()->markup( $widget::$posts );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment