Requests::get_certificate_path() WordPress Method

The Requests::get_certificate_path() method is used to get the path to the SSL certificate for the specified domain. This is useful for making sure that your website is using a valid SSL certificate.

Requests::get_certificate_path() #

Get default certificate path.


Return

(string) Default certificate path.


Top ↑

Source

File: wp-includes/class-requests.php

	public static function get_certificate_path() {
		if (!empty(self::$certificate_path)) {
			return self::$certificate_path;
		}

		return dirname(__FILE__) . '/Requests/Transport/cacert.pem';
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.