Skip to content

Instantly share code, notes, and snippets.

View jasewarner's full-sized avatar

Jase Warner jasewarner

View GitHub Profile
@jasewarner
jasewarner / config-example.yml
Last active August 24, 2021 10:31
Shopify Theme Kit config file
development:
password: ${PASSWORD}
theme_id: ${ID}
store: ${URL}
ignore_files:
- .git/*
- .gitignore
- .idea
- dev/*
- .theme-check.yml
@jasewarner
jasewarner / cf7-plugin-useful-filter.php
Last active November 26, 2019 14:10
Contact Form 7 plugin filter to remove <p/> tags
/**
* Contact Form 7 plugin filters
*
* @author Jase Warner
* @version 1.0.0
* @package <package>
*/
/**
* Remove <p/> tags from forms
@jasewarner
jasewarner / php-pretty-printing
Last active May 11, 2017 10:21
Pretty printing in PHP
/**
* Pretty printing debugging tool.
*/
function pr( $var ) {
print '<pre>';
print_r( $var );
print '</pre>';
}
// Usage.
@jasewarner
jasewarner / gitignore-for-wordpress-theme
Last active March 7, 2024 04:41
WordPress project .gitignore
# ignore everything in the root except the "wp-content" directory.
/*
!wp-content/
# ignore everything in the "wp-content" directory, except:
# mu-plugins, plugins, and themes directories
wp-content/*
!wp-content/mu-plugins/
!wp-content/plugins/
!wp-content/themes/