Skip to content

Instantly share code, notes, and snippets.


Michael Curren mcurren

View GitHub Profile
mcurren / advanced-media-query-mixin.scss
Last active Jun 11, 2019
SASS breakpoint mixin with nested variable map
View advanced-media-query-mixin.scss
* Map-get function for nested variable maps
* (required)
@function map-deep-get($map, $keys...) {
@each $key in $keys {
$map: map-get($map, $key);
@return $map;
mcurren / Contract Killer
Last active Dec 4, 2018 — forked from malarkey/Contract Killer
The latest version of my ‘killer contract’ for web designers and developers
View Contract Killer

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

mcurren / functions.php
Created Feb 13, 2018 — forked from ChrisLTD/functions.php
Fix so you can preview ACF field changes in Wordpress admin
View functions.php
Debug preview with custom fields
Taken from:
See also:
add_filter('_wp_post_revision_fields', 'add_field_debug_preview');
function add_field_debug_preview($fields){
$fields["debug_preview"] = "debug_preview";
return $fields;
mcurren /
Last active Dec 15, 2017
Wordpress post meta query for Members plugin roles

Wordpress Members plugin post Meta Query

A meta query to be used with the Members plugin by Justin Tadlock. This meta query and will not have any effect without the plugin installed and active.


This Meta Query has two arguments and accepts either one. They are both based on post meta assigned using the Members plugin Content Permissions meta box on the post edit screen.

Members plugin Content Permissions meta box

Argument 1

This meta query argument will exclude any posts from your custom WP_Query with roles assigned in the Content Permissions meta box that do not match the current user's role.

mcurren / 3dp_wc-functions.php
Last active Nov 29, 2017
Add 3D Printing weights and dims to WooCommerce cart objects
View 3dp_wc-functions.php
* Add 3DPrint weight and dimensions to WooCommerce cart item objects
* @author
* @requires WooCommerce plugin -
* @requires Wordpress 3D Printing plugin -
function add_3dp_stats_to_wc_cart_objects( $cart_object ) {

Keybase proof

I hereby claim:

  • I am mcurren on github.
  • I am mcurren ( on keybase.
  • I have a public key ASBoHtvuR26mYzFzsuEcqSfC-8lDO3jx3lEv8lzHYmS3Pwo

To claim this, I am signing this object:

mcurren / SassMeister-input.scss
Created Sep 28, 2015
Generated by
View SassMeister-input.scss
// ----
// libsass (v3.2.5)
// ----
// Set the desired number of columns in a variable for flexibility
$total-columns: 24;
// Create a placeholder for the grid container
You can’t perform that action at this time.