plugin_basename( BWFAN_PLUGIN_FILE ), 'version' => self::$version, 'plugin_path' => dirname( BWFAN_PLUGIN_FILE ), 'class' => __CLASS__, ); WooFunnel_Loader::register( $configuration ); } public static function load_files() { $get_global_path = dirname( __FILE__ ) . '/woofunnels/'; if ( false === @file_exists( $get_global_path . 'includes/class-woofunnels-api.php' ) ) { //phpcs:ignore PHP_CodeSniffer - Generic.PHP.NoSilencedErrors, Generic.PHP.NoSilencedErrors _doing_it_wrong( __FUNCTION__, esc_html__( 'WooFunnels Core should be present in folder \'woofunnels\' in order to run this properly. ', 'wp-marketing-automations' ), self::$version ); //phpcs:ignore WordPress.Security.EscapeOutput die( 0 ); } /** * Loading Core XL Files */ require_once dirname( BWFAN_PLUGIN_FILE ) . '/woofunnels/includes/class-woofunnels-dashboard-loader.php'; if ( BWF_VERSION === self::$version ) { do_action( 'woofunnels_loaded', $get_global_path ); } elseif ( ( defined( 'BWFAN_IS_DEV' ) && true === BWFAN_IS_DEV ) || ( defined( 'BWF_DEV' ) && true === BWF_DEV ) ) { _doing_it_wrong( __FUNCTION__, esc_html__( 'WooFunnels Core should be at the same version as declared in your start.php', 'wp-marketing-automations' ), self::$version ); //phpcs:ignore WordPress.Security.EscapeOutput die( 0 ); } } } WooFunnel_BWFAN::register();