PluginProbe
Guest Author / 2.2
Guest Author v2.2
2.4 2.5 2.6 2.61 2.62 trunk 2.1.6 2.1.7 2.1.8 2.1.9 2.1.91 2.2 2.3
guest-author / index.php

index.php in Guest Author 2.2, at index.php

32 lines 882 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: Guest Author
4 Plugin URI: https://wordpress.org/plugins/guest-author/
5 Description: The only guest author plugin you need.
6 Version: 2.2
7 Author: WebFactory Ltd
8 Author URI: https://www.webfactoryltd.com/
9 License: GNU General Public License v3.0
10 Text Domain: guest-author
11 */
12
13 if ( !defined('ABSPATH') )
14 die('-1');
15
16 define('BS_GUEST_AUTHOR_VERSION', '2.2');
17
18 /**
19 * Loading Guest Author class
20 */
21 $root_dir = is_dir( plugin_dir_path(__FILE__) . 'src') ? 'src/' : '';
22 require plugin_dir_path(__FILE__) . $root_dir . 'guest-author.php';
23 require plugin_dir_path(__FILE__) . $root_dir . 'settings.php';
24 require plugin_dir_path(__FILE__) . $root_dir . 'functions.php';
25
26 function register_BS_Guest_Author_plugin() {
27 new BS_Guest_Author();
28 new BS_Guest_Author_Settings();
29 }
30
31 add_action('init', 'register_BS_Guest_Author_plugin');
32