-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshortcode-scrubber.php
36 lines (31 loc) · 1.1 KB
/
shortcode-scrubber.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
<?php
/**
* Plugin Name: Shortcode Scrubber
* Plugin URI: https://wpscholar.com/wordpress-plugins/shortcode-scrubber/
* Description: A powerful tool for cleaning up shortcodes on your site and confidently managing plugins and themes that use shortcodes.
* Version: 1.0.3
* Author: Micah Wood
* Author URI: https://wpscholar.com
* Requires at least: 3.2
* Requires PHP: 5.6
* Text Domain: shortcode-scrubber
* Domain Path: languages
* License: GPL3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
*
* Copyright 2019-2020 by Micah Wood - All rights reserved.
*
* @package ShortcodeScrubber
*/
define( 'SHORTCODE_SCRUBBER_FILE', __FILE__ );
define( 'SHORTCODE_SCRUBBER_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
require __DIR__ . '/vendor/autoload.php';
// Check plugin requirements
global $pagenow;
if ( 'plugins.php' === $pagenow ) {
$plugin_check = new WP_Forge_Plugin_Check( __FILE__ );
$plugin_check->min_php_version = '5.6';
$plugin_check->min_wp_version = '3.2';
$plugin_check->check_plugin_requirements();
}
require dirname( __FILE__ ) . '/includes/bootstrap.php';