mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-30 11:42:22 +08:00
https://stackoverflow.com/questions/65899031/how-to-edit-terms-conditions-checkbox-text-in-woocommerce-checkout/65900638
6 lines
366 B
Text
6 lines
366 B
Text
add_filter( 'woocommerce_get_terms_and_conditions_checkbox_text', 'custom_terms_and_conditions_checkbox_text' );
|
|
function custom_terms_and_conditions_checkbox_text( $text ){
|
|
$text = get_option( 'woocommerce_checkout_terms_and_conditions_checkbox_text', sprintf( __( 'I have read and agree to the website %s', 'woocommerce' ), '[terms]' ) );
|
|
|
|
return $text;
|
|
}
|