Skip to content

Instantly share code, notes, and snippets.

Kenn Wilson kennwilson

Block or report user

Report or block kennwilson

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
@kennwilson
kennwilson / countries-without-postcodes.rb
Last active Sep 30, 2019
Countries without postal codes
View countries-without-postcodes.rb
COUNTRIES_WITHOUT_POSTCODES = [
[ "Angola", "AO" ],
[ "Antigua and Barbuda", "AG" ],
[ "Aruba", "AW" ],
[ "Bahamas", "BS" ],
[ "Belize", "BZ" ],
[ "Benin", "BJ" ],
[ "Botswana", "BW" ],
[ "Burkina Faso", "BF" ],
[ "Burundi", "BI" ],
@kennwilson
kennwilson / disable-plugins-in-development.php
Created Jun 25, 2013
Disable specified WordPress plugins in your development environment. Useful for plugins that either make network calls you don't want when working (eg, auto-posting to Facebook), or for plugins that rely on services only available in production (eg, Varnish).
View disable-plugins-in-development.php
<?php
/**
* Disable specified plugins in development environment.
*
* This is a "Must-Use" plugin. Code here is loaded automatically before regular plugins load.
* This is the only place from which regular plugins can be disabled programatically.
*
* Place this code in a file in WP_CONTENT_DIR/mu-plugins or specify a custom location
* by setting the WPMU_PLUGIN_URL and WPMU_PLUGIN_DIR constants in wp-config.php.
*
You can’t perform that action at this time.