| 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 |
|