woocommerce_add_message filter-hook . WC 2.1
Print a single notice immediately.
Usage
add_filter( 'woocommerce_add_message', 'filter_function_name_7226' ); function filter_function_name_7226( $message ){ // filter... return $message; }
- $message(string)
- The text to display in the notice.
Changelog
Since 2.1 | Introduced. |
Where the hook is called
woocommerce_add_message
woocommerce_add_message
woocommerce/includes/wc-notice-functions.php 186
$message = apply_filters( 'woocommerce_add_message', $message );
woocommerce/includes/wc-notice-functions.php 84
$message = apply_filters( 'woocommerce_add_message', $message );