woocommerce_admin_remote_specs_evaluator_should_log хук-фильтрWC 9.2.0

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

Использование

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.

Список изменений

С версии 9.2.0 Введена.

Где вызывается хук

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 ) ) {

Где используется хук в WooCommerce

Использование не найдено.