-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfind-shortcodes.php
42 lines (39 loc) · 972 Bytes
/
find-shortcodes.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
<?php
/**
* Plugin Name: Find Shortcodes
* Plugin URI: https://www.wpsitecare.com
* Description: Find shortcodes in the WordPress post content.
* Version: 0.1.0
* Author: Robert Neu
* Author URI: http://robneu.com
* License: MIT
* License URI: http://wpsitecare.mit-license.org/
*
* @package FindShortcodes
* @copyright Copyright (c) 2016, WP Site Care, LLC
* @license MIT
* @since 0.1.0
*/
defined( 'WPINC' ) || die;
/**
* The absolute path to the plugin's root directory with a trailing slash.
*
* @since 0.1.0
* @uses plugin_dir_path()
*/
define( 'SCFSC_DIR', plugin_dir_path( __FILE__ ) );
add_action( 'plugins_loaded', 'scfsc_load_plugin', 99 );
/**
* Load the plugin.
*
* @since 0.1.0
* @access public
* @return void
*/
function scfsc_load_plugin() {
if ( is_admin() ) {
require_once SCFSC_DIR . 'inc/template.php';
require_once SCFSC_DIR . 'inc/utility.php';
require_once SCFSC_DIR . 'inc/init.php';
}
}