Site icon Hip-Hop Website Design and Development

The way to get a web page slug in WordPress?

I want to know if anybody is aware of how I can get the decision to a wordpress slug with a wordpress perform. All this so that the whole lot is added routinely within the following means, EXAMPLE:

<hyperlink rel = "alternate" hreflang = "fr-BE" href = "https://www.moneytrans.eu/belgium/{{SLUG HERE}}" />

As you may see, I solely want the perform to take the slug of the web page with out together with directories or something like that.

Thanks to your assist!