. */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } $plugin_data = get_file_data( __FILE__, array( 'ver' => 'Version', 'name' => 'Plugin Name', ) ); define( 'AWOOC_PLUGIN_DIR', __DIR__ ); define( 'AWOOC_PLUGIN_URI', plugin_dir_url( __FILE__ ) ); define( 'AWOOC_PLUGIN_FILE', plugin_basename( __FILE__ ) ); define( 'AWOOC_PLUGIN_VER', $plugin_data['ver'] ); define( 'AWOOC_PLUGIN_NAME', $plugin_data['name'] ); require __DIR__ . '/includes/class-art-woo-order-one-click.php'; register_uninstall_hook( __FILE__, array( 'ArtWoo_Order_One_Click', 'uninstall' ) ); /** * The main function responsible for returning the ArtWoo_Order_One_Click object. * * Use this function like you would a global variable, except without needing to declare the global. * * Example: method_name(); ?> * * @since 1.0.0 * * @return object ArtWoo_Order_One_Click class object. */ if ( ! function_exists( 'awooc_order_one_click' ) ) { function awooc_order_one_click() { return ArtWoo_Order_One_Click::instance(); } } $GLOBALS['awooc'] = awooc_order_one_click();