Class WC_HTTPS

WC_HTTPS class.

Package: WooCommerce\Classes
Category: Class
Author: WooThemes
Version: 2.1.0
Class: WC_HTTPS
Located at includes/class-wc-https.php

Methods summary

public
# __construct( )

Hook in our HTTPS functions if we're on the frontend. This will ensure any links output to a page (when viewing via HTTPS) are also served over HTTPS.

Hook in our HTTPS functions if we're on the frontend. This will ensure any links output to a page (when viewing via HTTPS) are also served over HTTPS.

public static string
# force_https_url( mixed $content )

force_https_url function.

force_https_url function.

Parameters

$content
mixed
$content

Returns

string
public string
# force_https_page_link( string $link, object $page_id )

Force a post link to be SSL if needed

Force a post link to be SSL if needed

Parameters

$link
string
$post_link
$page_id
object
$post

Returns

string
public
# force_https_template_redirect( )

Template redirect - if we end up on a page ensure it has the correct http/https url

Template redirect - if we end up on a page ensure it has the correct http/https url

public
# unforce_https_template_redirect( )

Template redirect - if we end up on a page ensure it has the correct http/https url

Template redirect - if we end up on a page ensure it has the correct http/https url

Magic methods summary

WooCommerce API documentation generated by ApiGen 2.8.0