Standard for US Driver's Licenses defines 9 different barcode standards (AAMVA versions) with over 80 different fields encoded inside a barcode. Some fields exist on all barcode standards, other exist only on some. To standardize the API, we have structured the fields in the following sections:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Email validation by third-party API | |
// The following example shows how you can send the value of an Email type field to a third-party API to determine if the email is valid. In this example we are using the QuickEmailVerification API. | |
add_filter( 'gform_field_validation', function ( $result, $value, $form, $field ) { | |
if ( $field->get_input_type() === 'email' && $result['is_valid'] ) { | |
$request_url = add_query_arg( | |
array( | |
'email' => $value, | |
'apikey' => 'your_api_key_here', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>Print External Link</title> | |
<script type="text/javascript"> | |
function closePrint () { | |
document.body.removeChild(this.__container__); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: GF Editable by Radley | |
Description: Example classes to make a particular gravity form editable on the front-end. | |
Author: Radley Sustaire | |
Author URI: https://radleysustaire.com/ | |
Version: 1.0.0 | |
*/ | |
// QUICK TEST INSTRUCTIONS: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Gravity Wiz // Gravity Forms // Multi-form Entry Exporter | |
* | |
* Allows you create a custom entry export containing fields from multiple forms. The custom export | |
* is then displayed in the "Form" drop down menu in a "Multi-form Export" option group. | |
* | |
* @version 1.0 | |
* @author David Smith <david@gravitywiz.com> | |
* @license GPL-2.0+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Gravity Wiz // Gravity Perks // Get Sum of Nested Form Fields | |
* | |
* Get the sum of a column from a Gravity Forms List field. | |
* | |
* @version 1.3 | |
* @author David Smith <david@gravitywiz.com> | |
* @license GPL-2.0+ | |
* @link http://gravitywiz.com/... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @name Week spend by Campaign | |
* | |
* | |
*/ | |
const credentials = { | |
accessToken: '', | |
clientId: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', | |
clientSecret: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', |
- Docker runs on a Linux kernel
Docker can be confusing to PC and Windows users because many tutorials on that topic assume you're using a Linux machine.
As a Linux user, you learn that Volumes are stored in a part of the host filesystem managed by Docker, and that is /var/lib/docker/volumes
. When you're running Docker on a Windows or Mac OS machine, you will read the same documentation and instructions but feel frustrated as that path don't exist on your system. This simple note is my answer to that.
When you use Docker on a Windows PC, you're typically doing one of these two things:
- Run Linux containers in a full Linux VM (what Docker typically does today)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT a.ID, a.post_title, a.post_type, a.post_status | |
FROM wp_posts AS a | |
INNER JOIN ( | |
SELECT post_title, MIN( id ) AS min_id | |
FROM wp_posts | |
WHERE post_type = 'post' | |
AND post_status = 'publish' | |
GROUP BY post_title | |
HAVING COUNT( * ) > 1 | |
) AS b ON b.post_title = a.post_title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A custom function that verifies an email ID | |
* | |
* @param {String} email ID | |
* @return {Boolean} If the email ID is active | |
* @customfunction | |
*/ | |
function verifyEmail(email) { | |
// Replace this with your Hunter.io API key |
NewerOlder