vtmin_woo_get_url

The VarkTech Minimum Purchase for WooCommerce vtmin woo get url function.

Description

vtmin_woo_get_url( (string) $pageName ); 

Parameters (1)

0. $pagename (string)
The pagename.

Usage

  1. if ( !function_exists( 'vtmin_woo_get_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'varktech-minimum-purchase-for-woocommerce/woo-integration/vtmin-parent-functions.php'; 
  3.  
  4. // The pagename. 
  5. $pagename = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = vtmin_woo_get_url($pagename); 
  9.  

Defined (1)

The function is defined in the following location(s).

/woo-integration/vtmin-parent-functions.php  
  1. function vtmin_woo_get_url ($pageName) {  
  2. global $woocommerce; 
  3. $checkout_page_id = vtmin_woo_get_page_id($pageName); 
  4. if ( $checkout_page_id ) { 
  5. if ( is_ssl() ) 
  6. return str_replace( 'http:', 'https:', get_permalink($checkout_page_id) ); 
  7. else 
  8. return apply_filters( 'woocommerce_get_checkout_url', get_permalink($checkout_page_id) );