Created
April 11, 2016 12:11
-
-
Save SirDarcanos/d297db06c39a9531e408ad8a6fde44ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sell only in California | |
*/ | |
function wc_sell_only_states( $states ) { | |
$states['US'] = array( | |
'CA' => __( 'California', 'woocommerce' ), | |
'TX' => __( 'Texas', 'woocommerce' ), | |
); | |
return $states; | |
} | |
add_filter( 'woocommerce_states', 'wc_sell_only_states' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment