Skip to content

Instantly share code, notes, and snippets.

@premanshup
Created February 2, 2021 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save premanshup/8060fa8ffe1083cf4d939d508ab54c24 to your computer and use it in GitHub Desktop.
Save premanshup/8060fa8ffe1083cf4d939d508ab54c24 to your computer and use it in GitHub Desktop.
WooCommerce - Change Terms & Conditions text for Checkout Page - Astra Child Theme
add_filter( 'woocommerce_get_terms_and_conditions_checkbox_text', 'astra_change_terms_text_checkout_page' );
function astra_change_terms_text_checkout_page( $text ) {
$text = 'This is my new text for Terms and Condition on Checkout Page.';
return $text;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment