-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathwp-rest-cache.php
46 lines (41 loc) · 1.38 KB
/
wp-rest-cache.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
<?php
/**
* The plugin bootstrap file
*
* @link: https://www.acato.nl
* @since 2018.1
* @package WP_Rest_Cache_Plugin
*
* @wordpress-plugin
* Plugin Name: WP REST Cache
* Plugin URI: https://www.acato.nl
* Description: Adds caching to the WP REST API
* Version: 2024.3.0
* Author: Acato
* Author URI: https://www.acato.nl
* Text Domain: wp-rest-cache
* License: GPLv3
* License URI: http://www.gnu.org/licenses/gpl.html
* Requires at least: 4.7
* Requires PHP: 7.0
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
require_once plugin_dir_path( __FILE__ ) . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'class-autoloader.php';
spl_autoload_register( [ '\WP_Rest_Cache_Plugin\Includes\Autoloader', 'autoload' ] );
/**
* The code that runs during plugin activation.
* This action is documented in includes/class-wp-rest-cache-activator.php
*/
register_activation_hook( __FILE__, [ '\WP_Rest_Cache_Plugin\Includes\Activator', 'activate' ] );
/**
* The code that runs during plugin deactivation.
* This action is documented in includes/class-wp-rest-cache-deactivator.php
*/
register_deactivation_hook( __FILE__, [ '\WP_Rest_Cache_Plugin\Includes\Deactivator', 'deactivate' ] );
/**
* Begins execution of the plugin.
*/
new \WP_Rest_Cache_Plugin\Includes\Plugin();