Advertisement
majeedraza

WooCommerce - Add states where not included in WooCommerce

Oct 20th, 2021
995
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1. <?php
  2. // WooCommerce - Add states where not included in WooCommerce  
  3.   add_filter( 'woocommerce_states', 'custom_states' );
  4.   function custom_states( $states ) {
  5.     $states['CU'] = array (          
  6.             'PR' => 'Pinar del Río',
  7.             'AR' => 'Artemisa',
  8.     );          
  9.     return $states;
  10.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement