Join

Open WooCommerce Checkout Terms & Conditions In New Tab

Don't want to mess with code snippets? This is a feature of MyListing Pro.

Instructions

  1. Create a new PHP code snippet.
  2. Copy the contents of code snippet below.
  3. Paste the contents into your code snippet.
  4. Review any notes that I’ve provided.
  5. Save and enable the code snippet.
  6. Test.

Snippet

By default, WooCommerce will attempt to display your Terms & Conditions inline (i.e., on your Checkout page).

Some site owners prefer to open their terms in a new browser tab so customers have a full view of the information they need to make educated decisions, and that’s where this code snippet comes in.

PHP
function wp_turned_up_woocommerce_checkout_terms_and_conditions() {
  remove_action( 'woocommerce_checkout_terms_and_conditions', 'wc_terms_and_conditions_page_content', 30 );
}
add_action( 'wp', 'wp_turned_up_woocommerce_checkout_terms_and_conditions' );