Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /********************
- By default Events Manager changes the WP published date to the event date. This snippet restores the original date, which is needed for Google Structured Data (and other things, probably).
- ********************/
- function stonehenge_em_restore_original_date() {
- remove_filter( 'get_the_date', array( 'EM_Event_Post', 'the_date' ), 10, 3 );
- }
- add_action( 'init', 'stonehenge_em_restore_original_date' );
Advertisement
Add Comment
Please, Sign In to add comment