woocommerce_admin_remote_specs_evaluator_should_log filter-hookWC 9.2.0

Filter to determine if the rule evaluator should log the results.

Usage

add_filter( 'woocommerce_admin_remote_specs_evaluator_should_log', 'wp_kama_woocommerce_admin_remote_specs_evaluator_should_log_filter' );

/**
 * Function for `woocommerce_admin_remote_specs_evaluator_should_log` filter-hook.
 * 
 * @param bool $should_log Whether the rule evaluator should log the results.
 *
 * @return bool
 */
function wp_kama_woocommerce_admin_remote_specs_evaluator_should_log_filter( $should_log ){

	// filter...
	return $should_log;
}
$should_log(true|false)
Whether the rule evaluator should log the results.

Changelog

Since 9.2.0 Introduced.

Where the hook is called

EvaluationLogger::log()
woocommerce_admin_remote_specs_evaluator_should_log
woocommerce/src/Admin/RemoteSpecs/RuleProcessors/EvaluationLogger.php 85
if ( ! apply_filters( 'woocommerce_admin_remote_specs_evaluator_should_log', $should_log ) ) {

Where the hook is used in WooCommerce

Usage not found.