Skip to content

Instantly share code, notes, and snippets.

@woogist
Created June 23, 2015 10:54
Show Gist options
  • Save woogist/a3529a804b018e5a0256 to your computer and use it in GitHub Desktop.
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