WooCommerce::build_dependencies_notice() public WC 1.0
Output a admin notice when build dependencies not met.
{} Это метод класса: WooCommerce{}
Хуков нет.
Возвращает
null.
Использование
$WooCommerce = new WooCommerce(); $WooCommerce->build_dependencies_notice();
Код WooCommerce::build_dependencies_notice() WooCommerce::build dependencies notice WC 5.0.0
public function build_dependencies_notice() {
if ( $this->build_dependencies_satisfied() ) {
return;
}
$message_one = __( 'You have installed a development version of WooCommerce which requires files to be built and minified. From the plugin directory, run <code>grunt assets</code> to build and minify assets.', 'woocommerce' );
$message_two = sprintf(
/* translators: 1: URL of WordPress.org Repository 2: URL of the GitHub Repository release page */
__( 'Or you can download a pre-built version of the plugin from the <a href="%1$s">WordPress.org repository</a> or by visiting <a href="%2$s">the releases page in the GitHub repository</a>.', 'woocommerce' ),
'https://wordpress.org/plugins/woocommerce/',
'https://github.com/woocommerce/woocommerce/releases'
);
printf( '<div class="error"><p>%s %s</p></div>', $message_one, $message_two ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}