woocommerce_push_notification_step_logging_enabled
Filters whether push notification step logging is enabled.
Evaluated once per logger, and the container resolves one per request. Turning it off stops the journey lines only; the module's error and warning logging is unaffected.
Использование
add_filter( 'woocommerce_push_notification_step_logging_enabled', 'wp_kama_woocommerce_push_notification_step_logging_enabled_filter' );
/**
* Function for `woocommerce_push_notification_step_logging_enabled` filter-hook.
*
* @param bool $enabled Whether step logging is enabled.
*
* @return bool
*/
function wp_kama_woocommerce_push_notification_step_logging_enabled_filter( $enabled ){
// filter...
return $enabled;
}
- $enabled(true|false)
- Whether step logging is enabled.
По умолчанию: true
Список изменений
| С версии 11.3.0 | Введена. |
Где вызывается хук
woocommerce_push_notification_step_logging_enabled
woocommerce/src/Internal/PushNotifications/Services/NotificationStepLogger.php 248
$enabled = (bool) apply_filters( 'woocommerce_push_notification_step_logging_enabled', true );