WpOrg\Requests
Iri::get_authority
Get the complete authority
Method of the class: Iri{}
No Hooks.
Returns
String.
Usage
// protected - for code of main (parent) or child class $result = $this->get_authority();
Iri::get_authority() Iri::get authority code WP 7.0
protected function get_authority() {
$iauthority = $this->get_iauthority();
if (is_string($iauthority)) {
return $this->to_uri($iauthority);
}
else {
return $iauthority;
}
}