Skip to content

Instantly share code, notes, and snippets.

@woogist
Created June 23, 2015 10:54
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save woogist/a3529a804b018e5a0256 to your computer and use it in GitHub Desktop.
add_filter( 'woocommerce_countries_base_postcode', create_function( '', 'return "80903";' ) );
add_filter( 'woocommerce_countries_base_city', create_function( '', 'return "COLORADO SPRINGS";' ) );
@munts
Copy link

munts commented Aug 26, 2020

From php.net on using 'create_function' "Warning
This function has been DEPRECATED as of PHP 7.2.0. Relying on this function is highly discouraged."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment