Service_Provider::register_hooks()
Register the hooks for Elementor integration.
Source
File: src/Tribe/Integrations/Elementor/Service_Provider.php
public function register_hooks() {
// Hook on the AJAX call Elementor will make during edits to support the archive shortcodes.
add_action( 'wp_ajax_elementor_ajax', [ $this, 'support_archive_shortcode' ] );
// Ensure that elementor data is not butchered as it is copied to recurring event children.
add_filter( 'tribe_events_meta_copier_copy_meta_value', [ $this, 'filter_protect_elementor_data' ], 10, 2 );
if ( ! tribe_events_views_v2_is_enabled() ) {
return;
}
add_action( 'elementor/widgets/widgets_registered', [ $this, 'action_register_widgets_manager_registration' ] );
add_action( 'elementor/elements/categories_registered', [ $this, 'action_register_elementor_category' ] );
add_action( 'elementor/controls/controls_registered', [ $this, 'action_register_elementor_controls' ] );
add_action( 'elementor/preview/enqueue_styles', [ $this, 'action_enqueue_resources' ] );
}
Changelog
| Version | Description |
|---|---|
| 5.4.0 | Introduced. |