Skip to content

Instantly share code, notes, and snippets.

View wpmudev-sls's full-sized avatar

WPMUDEV SLS Snippets - Unofficial wpmudev-sls

View GitHub Profile
@wpmudev-sls
wpmudev-sls / hustle-fix-quform.js
Created June 8, 2018 07:11
Hustle Exit Intent conflict Fix with QuForm
// window.Quform.prototype.setupInsideLabels = function(){}
(function ($) {
$.InFieldLabels = function (label, field, options) {
// To avoid scope issues, use 'base' instead of 'this'
// to reference this class from internal events and functions.
var base = this;
// Access to jQuery and DOM versions of each element
@theRealRizeo
theRealRizeo / delete-expired-members-and-users.php
Last active September 14, 2017 06:29
Cron to delete expired members and users
<?php
/**
* Membership 2 plugin script to run in the background to delete expired members
*
*/
if ( ! wp_next_scheduled( 'my_membership_delete_expired_members' ) ) {
wp_schedule_event( time(), 'daily', 'my_membership_delete_expired_members' );
}
@UmeshSingla
UmeshSingla / smush-bulk-restore.php
Created March 10, 2017 12:21
Adds a Box after settings, that allows you to restore your images from an existing backup created by Smush using Ajax
<?php
if ( ! class_exists( 'WpSmushRestore' ) ) {
class WpSmushRestore {
/**
* Constructor
*/
function __construct() {