$frame_name, 'qr_code_text' => $qr_code_text, 'image_format' => $image_format, 'qr_code_logo' => $qr_code_logo ); // Send the POST request to the API $response = wp_remote_post( 'https://api.qr-code-generator.com/v1/create?access-token=OK7cSLrRsp1mLGjFIxi60vARgf2Bb47tZLW3UXi57jetXhB4WQRj9pVxEvlMkBGj', array( 'body' => json_encode( $request_body ) ) ); // Check for errors if ( is_wp_error( $response ) ) { // Display error message echo 'Error: ' . $response->get_error_message(); } else { // Get the QR code image from the response $image_data = wp_remote_retrieve_body( $response ); // Display the QR code image on the page echo ''; } } ?>
'; } ?>