Skip to content

Instantly share code, notes, and snippets.


Chad intrigue

  • Intrigue
  • New York, NY
View GitHub Profile
andrewlimaza / register-helper.php
Created Oct 29, 2018
Register Helper Example For Paid Memberships Pro.
View register-helper.php
* Copy this code (below) into your PMPro Customizations Plugin -
function my_pmprorh_init()
//don't break if Register Helper is not loaded
if(!function_exists( 'pmprorh_add_registration_field' )) {
return false;
pbrocks / date-check.js
Created Sep 8, 2018
Add hidden PMPro registration field that shows a message when a checkbox is ticked.
View date-check.js
jQuery(document).ready(function($) {
var label = $('label[for=hidden_check]');
$('#date_check').click(function() {
if($('#date_check').is(':checked')) {
} else {
greathmaster / pmpro-rh-dob-check.php
Last active Jun 15, 2021
Checks birthday on checkout to confirm member is over 21 years.
View pmpro-rh-dob-check.php
function my_pmprorh_init()
//don't break if Register Helper is not loaded
if(!function_exists( 'pmprorh_add_registration_field' )) {
return false;
//define the fields
$fields = array();
$fields[] = new PMProRH_Field(
amboutwe / yoast_seo_opengraph_change_image_size.php
Last active Jun 15, 2022
Code snippet to change or remove OpenGraph output in Yoast SEO. There are multiple snippets in this code.
View yoast_seo_opengraph_change_image_size.php
/* Change size for Yoast SEO OpenGraph image for all content
* Credit: Yoast Development team
* Last Tested: May 19 2020 using Yoast SEO 14.1 on WordPress 5.4.1
* Accepts WordPress reserved image size names: 'thumb', 'thumbnail', 'medium', 'large', 'post-thumbnail'
* Accepts custom image size names:
strangerstudios / is_user_logged_in_required.php
Last active Apr 3, 2020
Make PMPro Register Helper fields required for logged out users only.
View is_user_logged_in_required.php
$required = false;
$required = true;
$fields[] = new PMProRH_Field(
"company", // input name, will also be used as meta key
"text", // type of field
"size"=>40, // input size
jackie / breakpoints.json
Last active Dec 19, 2015
Sass Script function to get breakpoint values from a JSON file.
View breakpoints.json
"phone" : "all and (max-width: 603px)",
"desktop": "all and (min-width: 1025px)",
"tablet" : "all and (min-width: 604px) and (max-width: 1024px)"
View dev-tool-resources.html
// Paul Irish talking about Chrome DevTools Timeline's new Frame Mode
// Chrome Office Hours - troubleshooting paint times
// Break time to glass - youtube
// Avoiding Unnecessary Paints
View ie8-grid-foundation-4.css
/* The Grid ---------------------- */
.lt-ie9 .row { width: 940px; max-width: 100%; min-width: 768px; margin: 0 auto; }
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.lt-ie9 .row.large-collapse .column,
.lt-ie9 .row.large-collapse .columns { padding: 0; }
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.lt-ie9 .row .row.large-collapse { margin: 0; }
.lt-ie9 .column, .lt-ie9 .columns { float: left; min-height: 1px; padding: 0 15px; position: relative; }
.lt-ie9 .column.large-centered, .columns.large-centered { float: none; margin: 0 auto; }
malarkey / Contract Killer
Last active Jun 23, 2022
The latest version of my ‘killer contract’ for web designers and developers
View Contract Killer

When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.

Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008


strangerstudios / gist:1389944
Created Nov 23, 2011
Paid Memberships Pro Extra Checkout/Profile Fields Example
View gist:1389944
Adding First and Last Name to Checkout Form
//add the fields to the form
function my_pmpro_checkout_after_password()
$firstname = $_REQUEST['firstname'];