wc_order_attribution_debug_mode_enabled хук-фильтрWC 8.5.0

Filter to enable debug mode.

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

add_filter( 'wc_order_attribution_debug_mode_enabled', 'wp_kama_wc_order_attribution_debug_mode_enabled_filter' );

/**
 * Function for `wc_order_attribution_debug_mode_enabled` filter-hook.
 * 
 * @param string $enabled 'yes' to enable debug mode, 'no' to disable.
 *
 * @return string
 */
function wp_kama_wc_order_attribution_debug_mode_enabled_filter( $enabled ){

	// filter...
	return $enabled;
}
$enabled(строка)
'yes' to enable debug mode, 'no' to disable.

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

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

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

OrderAttributionController::log()
wc_order_attribution_debug_mode_enabled
woocommerce/src/Internal/Orders/OrderAttributionController.php 460
if ( 'yes' !== apply_filters( 'wc_order_attribution_debug_mode_enabled', 'no' ) ) {

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

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