-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshortcode-options.php
29 lines (25 loc) · 995 Bytes
/
shortcode-options.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
<?php
/**
* Plugin Name: Shortcode Options
* Plugin URI: https://urielwilson.com/
* Description: The Shortcode Options plugin is a simple way to display WordPress Options using shortcode <strong>[wpoption opt="blogname"]</strong>, you can reference list of options here:<a href="https://codex.wordpress.org/Option_Reference"> Option Reference </a>.
* Version: 2.3.4
* Requires at least: 3.4
* Requires PHP: 7.3
* Author: uriel
* Author URI: https://urielwilson.com
* Text Domain: shortcode-options
* Domain Path: /languages
* License: GPLv2
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*/
// start plugin.
if ( ! \defined( 'ABSPATH' ) ) {
exit;
}
// Setup access to the plugin dir path.
\define( 'SCO_DIR_PATH', plugin_dir_path( __FILE__ ) );
// Load composer.
require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
// The plugin.
ShortcodeOptions\Plugin::init()->hooks();