• beeit

    (@beeit)


    Hello,
    When I use QR code widget it just displays content of the code. Is it possible to use it to auto fill some field? E.G, I would like to use QR code to add IoT device by scaning QR code which contains MQTT topic and I would like to use that so I do not have to write manualy.

Viewing 1 replies (of 1 total)
  • Plugin Author Amauri

    (@amauric)

    Hey

    There is a filter to manage the qrcode response with Javascript:

    
    add_filter('wpmobile_qrcode_event', 'wpmobile_qrcode_get_result');
    function wpmobile_qrcode_get_result() {
        $return = '
          if (result != "") {
              // use result to fill your fields
    
              return;
          }
        ';
        return $return;
    }
    
Viewing 1 replies (of 1 total)

The topic ‘QR Code use’ is closed to new replies.