Skip to content

Instantly share code, notes, and snippets.

Embed
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";' ) );
@munts

This comment has been minimized.

Copy link

@munts 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