Skip to content

Instantly share code, notes, and snippets.


Keenan Flogerzi keeneyemedia

View GitHub Profile
mikemanger / reposition-gform-blog-templates.php
Last active Aug 29, 2015
(WordPress) Reposition New Blog Templates
View reposition-gform-blog-templates.php
Plugin Name: Reposition New Blog Templates
Description: Move New Blog Template selection to a different Gravity Form page.
Author: Mike Manger
Author URI:
function mm_rnbt_get_form_filter( $form_html, $form ) {
// Let's check if the option for New Blog Templates is activated in this form
View functions.php
* Hide shipping rates when free shipping is available.
* Updated to support WooCommerce 2.6 Shipping Zones.
* @param array $rates Array of rates found for the package.
* @return array
function my_hide_shipping_when_free_is_available( $rates ) {
$free = array();
foreach ( $rates as $rate_id => $rate ) {
nickcernis /
Last active Nov 27, 2020
MailChimp Popup Script that works with WordPress sites

MailChimp's default popup scripts can break on WordPress sites that use jQuery/jQuery UI unless you include their embed code as the final elements before the closing body tag.

Including them in this way isn't always possible or easy with WordPress.

The code below is an alternative implementation of the loader that forces MailChimp's popup scripts to appear below all other scripts upon page load.

To use it, modify the baseUrl, uuid, and lid attributes with the ones from the original popup script that MailChimp supplies.

greguly / WooCommerce Dynamic Price View
Last active Aug 16, 2021
Woocommerce Dynamic Pricing table price view
View WooCommerce Dynamic Price View
add_filter( 'woocommerce_get_price_html', 'omniwp_credit_dollars_price', 10, 2 );
function omniwp_credit_dollars_price( $price, $product ) {
$pricing_rule_sets = get_post_meta( $product->post->ID, '_pricing_rules', true );
$pricing_rule_sets = array_shift( $pricing_rule_sets );
if ( $pricing_rule_sets
&& is_array( $pricing_rule_sets )
&& sizeof( $pricing_rule_sets ) ) {
sarahdayan / modifiers.scss
Last active Nov 11, 2021
Sass Modifiers Mixin
View modifiers.scss
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
// Sass modifiers mixin by Sarah Dayan
// Generate All Your Utility Classes with Sass Maps: