/home/altere25/highwoodoutdoorpool.com/wp-content/plugins/boldgrid-backup
Edit: /home/altere25/highwoodoutdoorpool.com/wp-content/plugins/boldgrid-backup/boldgrid-backup.php (4319B)
run();
}
/**
* Load Total Upkeep.
*
* Before loading, ensure system meets minimium requirements:
* # vendor folder exists. This is not a system requirement, but we want to make
* sure the user is NOT running a dev version with a missing vendor folder.
*
* @since 1.6.0
*
* @see Boldgrid_Backup_Admin_Support::run_tests()
*
* @return bool
*/
function load_boldgrid_backup() {
require_once BOLDGRID_BACKUP_PATH . '/admin/class-boldgrid-backup-admin-support.php';
$support = new Boldgrid_Backup_Admin_Support();
$tests_passed = $support->run_tests();
if ( ! $tests_passed ) {
return false;
}
// Include the autoloader to set plugin options and create instance.
$loader = require plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
// Load Library.
$load = new Boldgrid\Library\Util\Load(
array(
'type' => 'plugin',
'file' => plugin_basename( __FILE__ ),
'loader' => $loader,
'keyValidate' => true,
'licenseActivate' => false,
)
);
register_activation_hook( __FILE__, 'activate_boldgrid_backup' );
register_deactivation_hook( __FILE__, 'deactivate_boldgrid_backup' );
return true;
}
/*
* Load the plugin.
*
* Above is only:
* # function declarations
* # constant declarations
*
* The initial loading of this plugin is done below.
*
* Run the plugin only if on a wp-admin page or when DOING_CRON.
*/
if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) || defined( 'WP_CLI' ) && WP_CLI ) {
// If we could not load boldgrid_backup (missing system requirements), abort.
if ( load_boldgrid_backup() ) {
require_once BOLDGRID_BACKUP_PATH . '/includes/class-boldgrid-backup.php';
run_boldgrid_backup();
}
}