How can I get username into shortcode

I want to get username in a shortcode according to url (profile page url)

For example:
profile url : (

My code is;

<?php echo do_shortcode('[adress="username"]'); ?>

“username” should be changed automatically according to url.

I want to get johndoe,janedoe etc. istead of “username” as “johndoe” in shortcode


Source: shortcode

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.