I made a plugin that prints the url of the user’s profile page.

I’ll start by saying I have no idea what I’m doing and I can barely write php better than a toddler.

I noticed that people have been asking for this (or something very similar to this) for years and it still isn’t part of core and no one’s written a plugin for it. I needed to figure it out on my own, so thought I’d finally make an attempt to contribute back to a platform that has given me so much.

The way I approached this plugin is that it’s only use is to print the url of the user profile. As you can see, no surrounding a tag and no anchor text. That means you can put it anywhere inside of your own links, which is probably even easier than trying to specify that with a shortcode attribute.

So, if the logged in/logged out part were added, it would still break, just in a different way. 🙂

The idea is that, if you need to check for logged in/logged out status, you probably need to do it for multiple elements of your site. In that case, a separate plugin that does that is more useful and will work in harmony with this one.