Tribe__Tickets__Attendee_Registration__Shortcode::hook()
Source
File: src/Tribe/Attendee_Registration/Shortcode.php
public function hook() {
// block editor has a fit if we don't bail on the admin...don't really need them in other places?
if ( is_admin() || wp_doing_ajax() || tribe( 'context' )->doing_cron() ) {
return;
}
add_shortcode( $this->shortcode_name, [ $this, 'render' ] );
add_action( 'wp_enqueue_scripts', [ $this, 'maybe_enqueue_scripts'] );
}