lorro

WooCommerce - Add states where not included in WooCommerce

Oct 20th, 2021
736
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.   }
RAW Paste Data