QR code for current URL
-
How can I create a custom service button to show the qrcode of the current url?
I have the qrcode in a shortcode, have created a snippet to provide the button, but don’t know what to do with the href value. I don’t want to leave the website just show the qr code similar to the copy_link service button, but save the overhead of generating the code until someone selects it.`function addtoany_add_share_services( $services ) {
$services[‘qrcode_share_service’] = array(
‘name’ => ‘QRcode’,
‘icon_url’ => ‘https://journey2.life/wp-content/uploads/qr.png’,
‘icon_width’ => 32,
‘icon_height’ => 32,
‘href’ => ‘[qr_current_url]’,
);
return $services;
}
add_filter( ‘A2A_SHARE_SAVE_services’, ‘addtoany_add_share_services’, 10, 1 );The page I need help with: [log in to see the link]
The topic ‘QR code for current URL’ is closed to new replies.