Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
add_filter( 'woocommerce_countries_base_postcode', create_function( '', 'return "80903";' ) );
add_filter( 'woocommerce_countries_base_city', create_function( '', 'return "COLORADO SPRINGS";' ) );
Copy link

munts commented Aug 26, 2020

From 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