wc_order_attribution_debug_mode_enabled
Filter to enable debug mode.
Usage
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(string)
- 'yes' to enable debug mode, 'no' to disable.
Changelog
Since 8.5.0 | Introduced. |
Where the hook is called
wc_order_attribution_debug_mode_enabled
woocommerce/src/Internal/Orders/OrderAttributionController.php 461
if ( 'yes' !== apply_filters( 'wc_order_attribution_debug_mode_enabled', 'no' ) ) {