woocommerce_push_notification_step_logging_enabled │ filter-hook │ WC 11.3.0

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

NotificationStepLogger::is_active()
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 );

Where the hook is used in WooCommerce

Usage not found.