woocommerce_email_editor_logging_threshold
Controls the logging threshold for the email editor.
Использование
add_filter( 'woocommerce_email_editor_logging_threshold', 'wp_kama_woocommerce_email_editor_logging_threshold_filter' );
/**
* Function for `woocommerce_email_editor_logging_threshold` filter-hook.
*
* @param string $threshold The log level threshold.
*
* @return string
*/
function wp_kama_woocommerce_email_editor_logging_threshold_filter( $threshold ){
// filter...
return $threshold;
}
- $threshold(строка)
- The log level threshold.
Список изменений
| С версии 10.2.0 | Введена. |
Где вызывается хук
woocommerce_email_editor_logging_threshold
woocommerce/src/Internal/EmailEditor/Logger.php 51
$logging_threshold = apply_filters( 'woocommerce_email_editor_logging_threshold', WC_Log_Levels::WARNING );