. */ /** * Check if the file is called directly. * * If file is called directly, exit with * a message to user. */ if ( ! defined( 'WPINC' ) ) { die('Nice try dude. But I am sorry'); } /** * Include plugin main class. * * including the main class file * of the plugin with all functions. */ require_once plugin_dir_path( __FILE__ ) . 'includes/class-admin-ads.php'; /** * Begins execution of the plugin. * * Since everything within the plugin is registered via hooks, * we are calling the main plugin class to start the plugin * execution. * * @since 1.0.0 * @author Joel James * @created 04/02/2015 */ function run_admin_ads() { $spmm = new Admin_Ads(); $spmm->run(); } /** * Run the plugin. */ run_admin_ads(); /******* Plugin is writter and managed by Joel James ******/