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/helpers/addon.php
<?php
/**
 * Add-on helper functions.
 *
 * These functions are not using namespace since they may be used from a PHP 5.2 file.
 *
 * @since 6.0.0
 */
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.

/**
 * Load an Bulk Delete add-on.
 *
 * @since 6.0.0
 *
 * @param string $addon_class   Add-on class name.
 * @param array  $addon_details Add-on Details.
 *
 * @return \BulkWP\BulkDelete\Addon\BaseAddon Instance of the add-on.
 */
function load_bulk_delete_addon( $addon_class, $addon_details ) { //phpcs:ignore
	$addon_info = new \BulkWP\BulkDelete\Core\Addon\AddonInfo( $addon_details );

	$bulk_delete = \BulkWP\BulkDelete\Core\BulkDelete::get_instance();
	$bulk_delete->register_addon_namespace( $addon_info );

	$addon = new $addon_class( $addon_info );
	add_action( 'bd_loaded', array( $addon, 'register' ) );

	return $addon;
}