woocommerce_email_editor_logging_threshold filter-hookWC 10.2.0

Controls the logging threshold for the email editor.

Usage

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(string)
The log level threshold.

Changelog

Since 10.2.0 Introduced.

Where the hook is called

Logger::should_handle()
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 );

Where the hook is used in WooCommerce

Usage not found.