Level 3 Data | How to unset it?
-
Using the WPCode Lite plugin, I inserted this PHP snippet:
add_filter( 'wc_stripe_payment_intent_args', function ( $args ) { unset( $args['level3'] ); return $args; } ); add_filter( 'wc_stripe_payment_intent_capture_args', function ( $args ) { unset( $args['level3'] ); return $args; } );
Under the Insertion>Location section, I chose the Front End Conditional logic option and chose to show the snippet if Page URL is equal to mysite.com/checkout/
That didn’t work so I changed it to show snippet if Page URL *contains* mysite.com/checkout/
That didn’t work either so I just turned off the front end conditional logic and chose the Run Everywhere option. That worked, but I am not sure/do not think that is the best way to implement it.
What is the optimal way to run the snippet in order to remove Level 3 data?
~Saul
Ps. If there is a tip jar or something like that, please let me know as the support provided here makes a big difference for me and greatly appreciated.
- The topic ‘Level 3 Data | How to unset it?’ is closed to new replies.