URL/Host Helpers

Quickly read current URL, domain, and SSL status.

$current_url = CFGP_U::get_current_url();      // Friendly current URL
$full_url    = CFGP_U::get_url();              // Parsed URL (cached)
$host        = CFGP_U::get_host();             // e.g. "example.com"
$host_clean  = CFGP_U::get_host(true);         // Without http(s) and www
$is_ssl      = CFGP_U::is_ssl();                // Bool or check string URL
Was this page helpful?