<?php
if (!defined('ABSPATH')) {
    exit;
}

/*
 * SmartProductSEO Media Cleanup
 * Version: 1.1.9
 *
 * Shared helper loader.
 * Keeps the Trash Review and Permanent Delete render functions available
 * when admin page files are loaded before the trash manager file.
 */
if (!defined('SMCMLC_VERSION')) {
    define('SMCMLC_VERSION', '1.1.9');
}

$smcmlc_trash_manager_file = plugin_dir_path(__FILE__) . 'free-trash.php';
if (file_exists($smcmlc_trash_manager_file)) {
    require_once $smcmlc_trash_manager_file;
}

$smcmlc_permanent_delete_file = plugin_dir_path(__FILE__) . 'free-permanent-delete.php';
if (file_exists($smcmlc_permanent_delete_file)) {
    require_once $smcmlc_permanent_delete_file;
}


if (!function_exists('smcmlc_format_bytes')) {
    function smcmlc_format_bytes($bytes) {
        return size_format(absint($bytes));
    }
}