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.
Usage
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.
Default: true
Changelog
| Since 11.3.0 | Introduced. |
Where the hook is called
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 );