public/wordpress/wp-content/plugins/wp-courseware/includes/functions/checkout.php
/**
 * Get the URL to the checkout page.
 *
 * @since 4.3.0
 *
 * @return string The url to the checkout page.
 */
Get the URL to the checkout page.

@return string The url to the checkout page.
Get the URL to the checkout page . @return string The url to the checkout page .
function wpcw_get_checkout_url() {
	$checkout_url = wpcw_get_page_permalink( 'checkout' );
	if ( $checkout_url ) {
		if ( is_ssl() || 'yes' === wpcw_get_setting( 'force_ssl' ) ) {
			$checkout_url = str_replace( 'http:', 'https:', $checkout_url );
		}
	}
	return apply_filters( 'wpcw_get_checkout_url', $checkout_url );
}
function wpcw_get_checkout_url ( ) { $ checkout_url = wpcw_get_page_permalink ( 'checkout' ) ; if ( $ checkout_url ) { if ( is_ssl ( ) || 'yes' === wpcw_get_setting ( 'force_ssl' ) ) { $ checkout_url = str_replace ( 'http:' , 'https:' , $ checkout_url ) ; } } return apply_filters ( 'wpcw_get_checkout_url' , $ checkout_url ) ; }
Get the URL to the checkout page.
Get the URL to the checkout page .