I’ve added the following code to my “content-single-event.php” before the “do_action(’em_after_single_event_title’)”. But Google Maps is still visible. What am I doing wrong?
function df_add_and_remove_actions() {
remove_action('em_after_single_event_title', 'em_display_google_map', 40);
}
add_action('wp' , 'df_add_and_remove_actions');
I also tried just
remove_action('em_after_single_event_title', 'em_display_google_map', 40);