Child theme Functions.php update for legal reasons
-
Hi,
For legal purposes, I need to add a tick box for customers to accept the legal mentions at checkout. So far with Woocommerce settings, there is just a single option text available redirecting to any privacy page or whatsoever.
To do so, I will have to add some lines in the functions.php because the checkbox must be checked by the user before payment can be made. So my question is: Can I change the order button text in functions.php of my child theme with no fear with this code snippet:
add_filter( ‘woocommerce_order_button_text’, ‘custom_order_button_text’ );
function custom_order_button_text( $button_text ) {
return ‘Pay now’;
}
Will this change be up and still running after new theme updates?
Thanks a lot for your help!
Hello,
Yes, you can add any code to the child theme and it will be kept after any update. We never update our child theme.
Kind Regards
Hi,
Ok thanks a lot for yor quick answers.
Regards,
Bertrand
The topic ‘Child theme Functions.php update for legal reasons’ is closed to new replies.