QR Redirector


QR Redirector lets you set up your own QR Code redirection site. The plugin creates a new custom post type called QR Redirect, which generates a QR code
that points to the post’s permalink. You may then specify any URL you like for the post to redirect to. Useful if you have an offsite contest, form, newsletter
sign-up, etc. You can even change the URL you’re redirecting to without having to worry about updating the QR code in your advertising media.

This allows you to continuously reuse your QR codes on printed or linked marketing material… you can change the destination you’re sending your users to
without ever having to change the artwork you’re using to promote it.

This plugin is the second incarnation of the QR Code Redirect plugin. It was developed to be self contained after the Google Chart API deprecated its QR Code
generation service. Instead of relying on a third party service to generate the QR code, this plugin uses the PHPQRCode library by Dominik Dzienia, and stores
the QR image on your website.


  • QR Redirector edit screen


  1. Upload plugin .zip file to the /wp-content/plugins/ directory and unzip.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Add new redirects under the “QR Redirects” menu option.
  4. Use the shortcode discussed in the FAQ section to display the code on your site.


How can I add my QR code to a post?

Use the following shortcode:

[qr-code id="xx"]

where “id” is the post ID of your QR Redirect post. This shortcode will be generated on the edit page for each of your QR Redirects for you to copy and paste.

If I need to change the URL I want to redirect to, do I have to update the QR Code image in all of my ads?

No. The QR Code points to a WordPress permalink on your site. The only time you would ever have to switch out an image is if you change your site’s permalink
settings, and thus change the permalinks of the QR Redirect posts. Presumably this is something you won’t be doing too often, if ever.

What happens if I change the size or error correction level?

A new image with the appropriate settings will be generated and the original image will be removed from your site. Any shortcodes in use on your site will be
automatically updated. Printed versions of the old image will still function, but if you were hotlinking the original image somewhere outside of your website
you will need to update it there. If you have previously uploaded an old image to another site, rather than hotlinking, it will still function.

Why do I need this?

QR Codes on their own are static. In order to update them, you have to generate a whole new image (which would suck if you were putting them on flyers or some
other printed medium and suddenly needed to change them). This plugin lets you point your QR code’s embeded URL to a different web address if you need to.

For example, if you are using an off-site service to host a contest, you can point a QR code at that site for the duration of the contest and later change it to
point to another page with the contest winners.

How are your QR Codes generated?

Using the PHPQRCode library by Dominik Dzienia. This is a PHP implementation of QR Code 2-D barcode generator. It is a pure-php LGPL-licensed implementation based
on C libqrencode by Kentaro Fukuchi.

For more information, see: http://phpqrcode.sourceforge.net/

Why did you turn this into a new plugin instead of just updating the old QR Code Redirect plugin?

Largely because of the new way in which the QR codes are generated. Users would have had to resave all of their old QR Redirect posts in order to generate the
new images. This didn’t seem very user friendly to me.

Additionally, not everyone may want to host QR images on their own site. The old plugin will continue to function until Google removes the QR functionality from
its Charts API. I decided that this would be a good way to give people the option of hosting the images themselves, or letting Google do it for them.


14 اپريل 2021
Thanks for the very usefull plugin! Works great! Just one idea: It would be nice to display the counters of the redirects on the listing page (edit.php?post_type=qrcode&mode=list), too. This would give you a good overview of how often each QR code was used. Keep up the good work!
3 مارچ 2021
Thanks for updated. This plugin is very useful. QR Redirector 1.4 + WP 5.6.2 work fine but need update old QR-Redirects links manually.
15 نومبر 2019
I tried hard, but could not be able to use it in my website. Why not a simple tutorial on how to use???... Sorry.
3 سيپٽمبر 2016
We have a trusty (and rusty) QR code that has been on our literature for a long while now. We just launched our new site and thought we would have to generate a new QR code and say goodbye to the old one. Happily not! We found QR Redirector. I don't know what all the fields are for and only filled in a few but got it running in minutes. Now when I scan our trusty old QR code it takes you right to our new website's technical section. Awesome. Can't thank you enough for this plugin.
جمع: سڀ 8 تبصرا پڙهو

تعاون ڪندڙ & ڊولپرز

“QR Redirector” اوپن سورس سافٽ ويئر آهي. ھيٺين ماڻھن ھن پلگ ان ۾ حصو ورتو آھي.

تعاون ڪندڙ

ترجمو ڪريو “QR Redirector” توهان جي ٻولي ۾.

ڊولپمينٽ ۾ دلچسپي؟

ڪوڊ براؤز ڪريو، چيڪ ڪريو SVN مخزن، يا رڪنيت حاصل ڪريو ڊولپمينٽ لاگ پاران RSS.

لاگ تبدیل ڪريو


  • added a check to prevent infinite redirect loop in situations
  • added code to prevent browsers from caching the redirect url
  • added QR code download link on the dashboard QR Redirects index page


  • Security Fix: Added sanitization to admin notes field before save


  • Security Fix: Added security checks for bulk edit of QR Code
  • Security Fix: Added sanitization to URL string before save


  • Added the ability to use quick edit and bulk edit on the HTTP Response Code field
  • Minor code cleanup


  • Verified compatibility with latest WordPress release
  • Fixed multisite compatibility
  • Added ability to set the HTTP Status Code of the redirect
  • Some minor cosmetic changes


  • Verified compatibility with latest WordPress release
  • Some minor cosmetic changes
  • Removed margin around generated QR code images
  • Added tooltips


  • Fixed issue for people who have changed the default name of their wp-content directory.
  • Minor fixes for WordPress 3.7 compatibility


  • Fixed an issue that was preventing the QR Redirector menu option from displaying when certain plugins were activated.


  • Initial release