Skip to content

Instantly share code, notes, and snippets.

@jasoncomes
jasoncomes / MobileMultiForm.jquery.js
Last active June 16, 2017 21:31
When multiple forms or inputs are placed throughout a web page, the native iOS "next" or "previous" arrows jump from input to input. On pages with our widget, the arrows "jump" from the final widget field to the next input element no matter where it is on the page. This jarring to our users and takes users who have selected widget fields to an u…
/*!
MobileMultForm - 1.5
*/
(function($) {
'use strict';
var mobileMultiForm = {
@jasoncomes
jasoncomes / removeACFDBMeta
Last active June 16, 2017 21:27
After removing ACF field groups from site, this function should be called once* on the fields that were trashed to remove them from WP Database.
<?php
/**
* Remove ACF DB Meta
*
* After removing ACF field groups from site, this function should be called once* on the fields that were trashed to remove them from WP Database.
* Removes them from the postmeta & options tables in the database.
* Removes from all pages, posts, categories, taxonomies, users the field groups were attached too.
* Note: Should only be called and used on local development, please remove from site when you deploy
*

Error: ssh-cleanup

(Usually occurs when running Vagrant Up (Evolution ​v1.3.16​) = Vagrant 1.6.5 Virtual Box 4.3)

There are errors in the configuration of this machine. Please fix
the following errors and try again:

vm:
* The 'ssh-cleanup' provisioner could not be found.
  • Upgrade to Vagrant 1.8.5+ & Virtual Box 5.1.2+