×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Peter Goudkamp
Added: Mar 3, 2015 9:30 PM
Views: 15
Tags: woocommerce
  1. $payment_page = get_permalink( woocommerce_get_page_id( 'pay' ) );
  2.  
  3. // make ssl if needed
  4. if ( get_option( 'woocommerce_force_ssl_checkout' ) == 'yes' ) $payment_page = str_replace( 'http:', 'https:', $payment_page );