woocommerce_add_message хук-фильтр . WC 2.1
Print a single notice immediately.
Использование
add_filter( 'woocommerce_add_message', 'filter_function_name_3767' ); function filter_function_name_3767( $message ){ // filter... return $message; }
- $message(строка)
- The text to display in the notice.
Список изменений
С версии 2.1 | Введена. |
Где вызывается хук
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 );