Provider::add_filters()
Hooks into filters and actions disabling a number of UI across plugins to make sure no Event-related data will be modified during the migration.
Return
(void)
Source
File: src/Events_Community/Custom_Tables/V1/Migration/Maintenance_Mode/Provider.php
public function add_filters() { // Disable the Community Events edit form. add_filter( 'tribe_events_template_community/edit-event.php', [ $this, 'filter_migration_in_progress_community_events_message_file_path' ] ); add_filter( 'tec_events_community_allow_users_to_delete_event', [ $this, 'allow_users_to_delete_submissions' ], 10, 2 ); remove_action( 'tribe_events_community_form', [ tribe( 'community.main' )->event_form(), 'print_form' ], 10, 3 ); }
Changelog
Version | Description |
---|---|
4.10.0 | Introduced. |