---
description: >-
  https://stackoverflow.com/questions/50761584/returning-current-url-in-wordpress
---

# Returning current URL in WordPress (ok)

```
echo home_url($_SERVER['REQUEST_URI']);

```
