Update add-or-modify-states.md

This commit is contained in:
Niels Lange 2023-08-22 16:01:29 +02:00 committed by GitHub
parent 3ae66b6803
commit 86cc946848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ if ( ! function_exists( 'YOUR_PREFIX_add_or_modify_states' ) ) {
*/
function YOUR_PREFIX_add_or_modify_states( $states ) {
$states['XX'] = array(
'XX1' => 'State 1',
'XX2' => 'State 2'
'XX1' => __( 'State 1', 'woocommerce' ),
'XX2' => __( 'State 2', 'woocommerce' ),
);
return $states;