wc_clear_notices()
Unset all notices.
Description Description
Source Source
File: includes/wc-notice-functions.php
function wc_clear_notices() { if ( ! did_action( 'woocommerce_init' ) ) { wc_doing_it_wrong( __FUNCTION__, __( 'This function should not be called before woocommerce_init.', 'woocommerce' ), '2.3' ); return; } WC()->session->set( 'wc_notices', null ); }
Changelog Changelog
Version | Description |
---|---|
2.1 | Introduced. |