Show privacy text based on condition
-
I’d like to change the privacy text depending on whether tax is charged.
I know I could edit functions.php and find something along the lines of:
add_filter( ‘woocommerce_get_privacy_policy_text’, function ( $text, $type )
{
switch ( $type )
{
case ‘checkout’:But I’m unsure what I’d enter for switch so it shows privacy statement that’s default, but a different privacy when tax is being charged.
Can anyone help? Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Show privacy text based on condition’ is closed to new replies.