is( 'tec_post_type' ) ) { return; } // Bail when that action already exists. if ( has_action( 'wp_head', [ \Tribe__Events__JSON_LD__Event::instance(), 'markup' ] ) ) { return; } // Print JSON-LD markup on the`wp_head`. add_action( 'wp_head', [ \Tribe__Events__JSON_LD__Event::instance(), 'markup' ] ); } }