HEX
Server: Apache
System: Linux webd001.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: mciraet (192513)
PHP: 8.2.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/mciraet/www/wp-content/plugins/bulk-delete/include/compatibility/the-event-calendar.php
<?php
/**
 * Code to enable compatibility with 'The Event Calendar' plugin.
 *
 * @since 5.5.1
 *
 * @author Sudar
 *
 * @package BulkDelete\Util\Compatibility
 */
defined( 'ABSPATH' ) || exit; // Exit if accessed directly

/**
 * Remove actions used by The Event Calendar plugin.
 *
 * @since 5.5.1
 */
function bd_remove_event_calendar_filter() { //phpcs:ignore
	if ( class_exists( 'Tribe__Events__Query' ) ) {
		remove_action( 'pre_get_posts', array( 'Tribe__Events__Query', 'pre_get_posts' ), 50 );
	}
}
add_action( 'bd_before_query', 'bd_remove_event_calendar_filter' );