wc_order_attribution_use_base64_cookies
Filter to enable base64 encoding for cookie values.
Usage
add_filter( 'wc_order_attribution_use_base64_cookies', 'wp_kama_wc_order_attribution_use_base64_cookies_filter' ); /** * Function for `wc_order_attribution_use_base64_cookies` filter-hook. * * @param bool $use_base64_cookies True to enable base64 encoding. * * @return bool */ function wp_kama_wc_order_attribution_use_base64_cookies_filter( $use_base64_cookies ){ // filter... return $use_base64_cookies; }
- $use_base64_cookies(true|false)
- True to enable base64 encoding.
Default: false
Changelog
Since 9.0.0 | Introduced. |
Where the hook is called
wc_order_attribution_use_base64_cookies
woocommerce/src/Internal/Orders/OrderAttributionController.php 304
$use_base64_cookies = apply_filters( 'wc_order_attribution_use_base64_cookies', false );