| 1 |
<?php |
| 2 |
|
| 3 |
if (!defined('ABSPATH')) exit; |
| 4 |
|
| 5 |
if( !class_exists( 'PFBPlugin' ) ){ |
| 6 |
class PFBPlugin{ |
| 7 |
function __construct(){ |
| 8 |
$this -> loaded_classes(); |
| 9 |
} |
| 10 |
|
| 11 |
function loaded_classes(){ |
| 12 |
require_once PFB_DIR_PATH . 'includes/rootPlugin/Init.php'; |
| 13 |
require_once PFB_DIR_PATH . 'includes/rootPlugin/Enqueue.php'; |
| 14 |
require_once PFB_DIR_PATH . 'includes/rootPlugin/AdminMenu.php'; |
| 15 |
require_once PFB_DIR_PATH . 'includes/rootPlugin/ShortCode.php'; |
| 16 |
require_once PFB_DIR_PATH . 'includes/rootPlugin/CustomColumn.php'; |
| 17 |
require_once PFB_DIR_PATH . 'includes/rootPlugin/BlockCategory.php'; |
| 18 |
require_once PFB_DIR_PATH . 'includes/rootPlugin/Ajax.php'; |
| 19 |
|
| 20 |
new PFB\Init(); |
| 21 |
new PFB\Enqueue(); |
| 22 |
new PFB\AdminMenu(); |
| 23 |
new PFB\ShortCode(); |
| 24 |
new PFB\CustomColumn(); |
| 25 |
new PFB\BlockCategory(); |
| 26 |
new PFB\Ajax(); |
| 27 |
|
| 28 |
} |
| 29 |
|
| 30 |
} |
| 31 |
new PFBPlugin(); |
| 32 |
} |