composer install', '' . esc_html( str_replace( ABSPATH, '', __DIR__ ) ) . '' ); ?>

'; printf( /* Translators: %1$s is referring to a php constant name, %2$s is referring to the wp-config.php file. */ esc_html__( 'WooCommerce Admin development mode requires the %1$s constant to be defined and true in your %2$s file. Otherwise you are loading the admin package from WooCommerce core.', 'woocommerce-admin' ), 'JETPACK_AUTOLOAD_DEV', 'wp-config.php' ); echo '

'; } ); } /** * If we're missing expected files, notify users that the plugin needs to be built. */ if ( ! woocommerce_admin_check_build_files() ) { add_action( 'admin_notices', function() { echo '

'; printf( /* Translators: %1$s, %2$s, and %3$s are all build commands to be run in order. */ esc_html__( 'You have installed a development version of WooCommerce Admin which requires files to be built. From the plugin directory, run %1$s and %2$s to install dependencies, then %3$s to build the files.', 'woocommerce-admin' ), 'composer install', 'pnpm install', 'pnpm run build' ); printf( /* translators: 1: URL of GitHub Repository build page */ esc_html__( 'Or you can download a pre-built version of the plugin by visiting the releases page in the repository.', 'woocommerce-admin' ), 'https://github.com/woocommerce/woocommerce-admin/releases' ); echo '

'; } ); } FeaturePlugin::instance()->init();