-
Notifications
You must be signed in to change notification settings - Fork 0
/
artiss-transient-cleaner.php
executable file
·51 lines (41 loc) · 1.67 KB
/
artiss-transient-cleaner.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* Transient Cleaner
*
* @package artiss-transient-cleaner
* @author David Artiss
* @license GPL-2.0-or-later
*
* Plugin Name: Transient Cleaner
* Plugin URI: https://wordpress.org/plugins/artiss-transient-cleaner/
* Description: Clear expired transients from your options table.
* Version: 1.7
* Requires at least: 4.4
* Requires PHP: 7.4
* Author: David Artiss
* Author URI: https://artiss.blog
* Text Domain: artiss-transient-cleaner
* License: GPL v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU
* General Public License version 2, as published by the Free Software Foundation. You may NOT assume
* that you can use any other version of the GPL.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Define global to hold the plugin base file name.
if ( ! defined( 'TRANSIENT_CLEANER_PLUGIN_BASE' ) ) {
define( 'TRANSIENT_CLEANER_PLUGIN_BASE', plugin_basename( __FILE__ ) );
}
$functions_dir = plugin_dir_path( __FILE__ ) . 'inc/';
// Include all the various functions.
require_once plugin_dir_path( __FILE__ ) . 'inc/scheduler.php';
require_once plugin_dir_path( __FILE__ ) . 'inc/clean-transients.php';
require_once plugin_dir_path( __FILE__ ) . 'inc/settings.php';
require_once plugin_dir_path( __FILE__ ) . 'inc/shared.php';