clear_queues(); // Let's also re-run, forcing it, the feature support check to make sure we still support Async processing. tribe( 'feature-detection' )->supports_async_process( true ); $location = null !== $location ? $location : remove_query_arg( self::CLEAR_PROCESSES ); $location = add_query_arg( [ self::CLEAR_RESULT => $cleared ], $location ); wp_redirect( $location ); tribe_exit(); } /** * Clears the queues, in whatever state they are, related to Event Aggregator imports. * * @since 4.6.22 * * @return int The number of cleared queue processes. */ public function clear_queues() { return Tribe__Process__Queue::delete_all_queues( 'ea_import_events' ); } }