insights()->init(); } appsero_init_tracker_pre_orders_for_woocommerce(); NS7_RDNC::instance()->add_notification( 152, '9d7bd777a9d8055e', 'https://brightplugins.com' ); final class Bright_Plugins_PFW { /** * @var mixed */ static $instance = null; private function __construct() { $this->init_plugin(); } /** * Initializes a singleton instance * * @since 1.2.7 * @access public * @static * * @return $instance */ public static function init() { if ( is_null( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Initialize the plugin * * @since 1.2.7 * @access public * * @return void */ /** * @param $item_id * @param $item * @param $order */ /** * @param $item_id * @param $item * @param $order */ public function init_plugin() { // Check if WooCommerce is active if ( defined( 'WC_VERSION' ) ) { $wcpo_bootstrap = Bootstrap::init(); } else { add_action( 'admin_notices', function () { $class = 'notice notice-error'; $message = __( 'Oops! looks like WooCommerce is disabled. Please, enable it in order to use WooCommerce Pre-Orders.', 'pre-orders-for-woocommerce' ); printf( '
%2$s