Answers for "wp get current url path"

PHP
2

wordpress get site url

$url = site_url();
echo $url;
Posted by: Guest on June-17-2021
0

wordpress get current url with parameters

// absolute URI in multisite aware environment
$parts = parse_url( home_url() );
$current_uri = "{$parts['scheme']}://{$parts['host']}" . add_query_arg( NULL, NULL );
Posted by: Guest on February-03-2022

Browse Popular Code Answers by Language