Skip to content

Instantly share code, notes, and snippets.

Jake Jackson jakejackson1

Block or report user

Report or block jakejackson1

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jakejackson1 / disable-w3-total-cache-nags.php
Last active Dec 22, 2017
Remove Support Nag W3 Total Cache
View disable-w3-total-cache-nags.php
Plugin Name: Disable W3 Total Cache Nags
Version: 1.0
Author: Blue Liquid Designs
add_action( 'wp_loaded', 'bld_disable_w3_total_cache_nags' );
function bld_disable_w3_total_cache_nags()
jakejackson1 / dont-remove-filter-action.php
Last active Jul 4, 2016
An example showing why you don't remove a WP filter/action when it's currently being called.
View dont-remove-filter-action.php
* A basic proof of concept showing how you shouldn't remove an action/filter when it's currently being called
* The $array is the basic structure of $GLOBALS['wp_filter'][ $tag ] while the do/while loop is how WordPress
* loops through the current action/filter being called.
$array = [
1 => ['1-1'],
jakejackson1 / functions.php
Last active May 19, 2019
Convert Multi-Column List to Single Column
View functions.php
add_filter( 'gfpdf_pdf_field_content', function( $value, $field, $entry, $form, $pdf_field ) {
if ( $field->type === 'list' ) {
/* get out field value */
$value = $pdf_field->value();
$columns = is_array( $value[0] );
/* exit early if list field is empty */
You can’t perform that action at this time.