Skip to content

Instantly share code, notes, and snippets.

@webaware
webaware / gfeway-only-months.php
Created April 13, 2014 04:35
only allow Monthly for recurring payments for Gravity Forms eWAY plugin
<?php
/*
Plugin Name: GFeWAY Recurring Monthly
Plugin URI: https://gist.github.com/webaware/10569363
Description: only allow Monthly for recurring payments
Version: 1
Author: WebAware
Author URI: http://webaware.com.au/
@ref: http://wordpress.org/support/topic/how-to-make-interval-type-have-monthly-option-only
@rfmeier
rfmeier / functions.php
Last active June 14, 2017 15:10
Make the Genesis Featured Post widget title link to the specified category archives.
<?php
add_filter( 'widget_title', 'custom_widget_title', 10, 3 );
/**
* Callback for WordPress 'widget_title' filter.
*
* Create a link for the title of the Genesis Featured Widget if a category is
* specified.
*
* @package WordPress
<?php
/* Template Name: Test */
/**
* Genesis custom loop
*/
function be_custom_loop() {
global $post;
// arguments, adjust as needed
@nathanrice
nathanrice / functions.php
Created January 6, 2016 16:41
Add back blogPosting Schema to Genesis sites
<?php
/*
Add back Schema.org/blogPosting microdata to post entries.
Replace all instances of "themedemo" with something unique to your site.
User input is required in the last function. Be sure to fill these fields in with your own information.
Instances where you need to fill in information will be marked with a comment that indicates so.
*/
@AshlinRejo
AshlinRejo / Woo Discount: Subscription signup fee override fix
Created June 13, 2019 12:47
Woo Discount: Subscription signup fee override fix
add_filter('woo_discount_rules_run_before_calculate_event_on_before_calculate_subtotal_in_cart_rules', '__return_false');
@GaryJones
GaryJones / readme.md
Last active July 14, 2019 20:46
Custom Featured Post Widget plugin: Skeleton for amending the output of the Genesis Featured Post widget.
<?php
/**
* Don't redirect on archive pages.
*
* @param string $redirect
*
* @return string
*/
function iconic_add_to_cart_form_action( $redirect ) {
@billerickson
billerickson / genesis-custom-loop-pagination.php
Created July 31, 2012 15:59
Genesis custom loop with pagination
<?php
/* Template Name: Test */
/**
* Genesis custom loop
*/
function be_custom_loop() {
global $post;
// arguments, adjust as needed
@jacobdubail
jacobdubail / php
Created January 30, 2017 23:44
Function to auto-set your ACF5 Pro license key
function jtd_acf_auto_set_license_keys() {
if ( !get_option('acf_pro_license') && defined('ACF_5_KEY') ) {
$save = array(
'key' => ACF_5_KEY,
'url' => home_url()
);
$save = maybe_serialize($save);
@mischah
mischah / z.md
Last active December 9, 2022 02:11
Installing und initializing z (https://github.com/rupa/z) with help of Homebrew.

#The power of z

Do you spend lots of time doing things like this?

cd this/is/the/path/that/i/want/so/i/type/it/all/out/to/get/whereiwant

With z, you could just do this: