View Categories

How to Create QR code for WordPress Users

1 min read

To create QR code for WordPress users, you can use our QR Code Composer plugin, which allows you to embed QR codes via shortcodes and have them auto-generated and displayed on the backend on the Users page.

Auto generated and displayed on the Users page: #

Go to your WordPress site’s dashboard, find the Users menu, then edit a user, scroll down, and you’ll find the QR code as shown below. This feature is available in both the free and Premium version

 

QR code for users on WordPress

 

 

What is the content/value of the user’s QR code?: #

It works with the user’s first name, last name, display name, email, website URL, and user Biographical Info as content of the User’s QR code.

If you leave any field empty, it will generate a QR code, and the rest of the fields will be filled with information.

 

user info

 

 

 

How to display User/ Author QR code in frontend: [qrc_user] #

Developers can edit the author.php file for WordPress user information display. some popular themes have default hooks that you can use to view the information of the user profile, so in the case of showing the QR code frontend on the profile, that’s it.
Suppose you are using the Astra theme, the Astra theme has a hook for the author page, then how to use the shortcode with hooks. The following code can be used for the Astra theme
#

Author Page ( Astra Theme)

Author page
add_action('astra_after_archive_description','qrcodeforauthor');

function qrcodeforauthor(){
echo do_shortcode('[qrc_user]'); }
Author page QR

 

Scroll to Top