Skip to content

Instantly share code, notes, and snippets.

@gaiqus
Created November 22, 2020 10:13
Show Gist options
  • Save gaiqus/5c400ddd044c9eaab2c38a4698f7ae80 to your computer and use it in GitHub Desktop.
Save gaiqus/5c400ddd044c9eaab2c38a4698f7ae80 to your computer and use it in GitHub Desktop.
add_filter( 'woocommerce_states', 'fs_add_uae_emirates' );
function fs_add_uae_emirates( $states ) {
$states['AE'] = array(
'AZ' => __( 'Abu Dhabi', 'woocommerce' ),
'AJ' => __( 'Ajman', 'woocommerce' ),
'FU' => __( 'Fujairah', 'woocommerce' ),
'SH' => __( 'Sharjah', 'woocommerce' ),
'DU' => __( 'Dubai', 'woocommerce' ),
'RK' => __( 'Ras Al Khaimah', 'woocommerce' ),
'UQ' => __( 'Umm Al Quwain', 'woocommerce' ),
);
return $states;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment