WooCommerce Code Reference

WC_HTTPS
in package

WC_HTTPS class.

Tags
class

WC_HTTPS

version
2.2.0
category

Class

author

WooThemes

Table of Contents

force_https_page_link()  : string
Force a post link to be SSL if needed.
force_https_template_redirect()  : mixed
Template redirect - if we end up on a page ensure it has the correct http/https url.
force_https_url()  : string
Force https for urls.
http_api_curl()  : mixed
Force posts to PayPal to use TLS v1.2. See: https://core.trac.wordpress.org/ticket/36320 https://core.trac.wordpress.org/ticket/34924#comment:13 https://www.paypal-knowledge.com/infocenter/index?page=content&widgetview=true&id=FAQ1914&viewlocale=en_US
init()  : mixed
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.
unforce_https_template_redirect()  : mixed
Template redirect - if we end up on a page ensure it has the correct http/https url.

Methods

Force a post link to be SSL if needed.

public static force_https_page_link(string $link, int $page_id) : string
Parameters
$link : string
$page_id : int
Return values
string

force_https_template_redirect()

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

public static force_https_template_redirect() : mixed
Return values
mixed

force_https_url()

Force https for urls.

public static force_https_url(mixed $content) : string
Parameters
$content : mixed
Return values
string

http_api_curl()

Force posts to PayPal to use TLS v1.2. See: https://core.trac.wordpress.org/ticket/36320 https://core.trac.wordpress.org/ticket/34924#comment:13 https://www.paypal-knowledge.com/infocenter/index?page=content&widgetview=true&id=FAQ1914&viewlocale=en_US

public static http_api_curl(string $handle, mixed $r, string $url) : mixed
Parameters
$handle : string
$r : mixed
$url : string
Return values
mixed

init()

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 init() : mixed
Return values
mixed

unforce_https_template_redirect()

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

public static unforce_https_template_redirect() : mixed
Return values
mixed