Attention: if you attempt to fork this gist, github will think that you are a spammer and you will have to confirm that you are human with them. Apparantly there are too many links in this list. Also I update it rather frequently (see revisions on the left), so it's probably wise to not fork it anyway.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function( grunt ) { | |
'use strict'; | |
require( 'matchdep' ).filterDev( 'grunt-*' ).forEach( grunt.loadNpmTasks ); | |
grunt.initConfig({ | |
makepot: { | |
plugin1: { | |
options: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Yoast_GlotPress_SEO { | |
function __construct() { | |
add_filter( 'gp_title', array( $this, 'modify_title' ) ); | |
add_action( 'gp_head', array( $this, 'meta_desc' ), 9 ); | |
add_filter( 'gp_redirect_status', array( $this, 'modify_redirect_status' ), 10, 2 ); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Mixins: | |
*/ | |
//make flex rows a bit easier: | |
@mixin flex-row( $equalize:stretch ){ | |
@include display(flex); | |
@include flex-direction(row); | |
@include align-items($equalize); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make two admin-only fields (as text fields) | |
// and post to the custom fields from Gravity Forms | |
// instead of the "real" date picker. | |
// NOTE: change the input IDs to match the ones on your form | |
function rkv_datesubmit_fix ($form){ | |
//event start date field id is 3 | |
//event end date field ID is 4 | |
$raw_srt = $_POST['input_3']; | |
$raw_end = $_POST['input_4']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remove_action( 'genesis_before_post_content', 'genesis_post_info' ); | |
add_action( 'genesis_before_post_content', 'child_post_info' ); | |
/** | |
* Custom Post-Info with Google Rich Snippet support | |
* | |
* @author Greg Rickaby | |
* @since 1.0.0 | |
*/ | |
function child_post_info() { | |
if ( is_page() ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# A modification of Dean Clatworthy's deploy script as found here: https://github.com/deanc/wordpress-plugin-git-svn | |
# The difference is that this script lives in the plugin's git repo & doesn't require an existing SVN repo. | |
# main config | |
PLUGINSLUG="______your-plugin-name______" | |
CURRENTDIR=`pwd` | |
MAINFILE="______your-plugin-name______.php" # this should be the name of your main php file in the wordpress plugin | |
# git config |
OlderNewer