Skip to content

Instantly share code, notes, and snippets.

Avatar

Jase Warner jasewarner

View GitHub Profile
@jasewarner
jasewarner / config-example.yml
Last active Aug 24, 2021
Shopify Theme Kit config file
View config-example.yml
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 Nov 26, 2019
Contact Form 7 plugin filter to remove <p/> tags
View cf7-plugin-useful-filter.php
/**
* 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
Pretty printing in PHP
View php-pretty-printing
/**
* Pretty printing debugging tool.
*/
function pr( $var ) {
print '<pre>';
print_r( $var );
print '</pre>';
}
// Usage.
@jasewarner
jasewarner / gitignore-for-wordpress-theme
Last active Oct 10, 2021
WordPress project .gitignore
View gitignore-for-wordpress-theme
# 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/