Skip to main content
fixed code formating
Source Link
nmr
  • 4.5k
  • 2
  • 17
  • 25

Add this snippet to the functions.php file of your theme to add a new country to the WooCommerce countries list.

add_filter('woocommerce_states', 'sa_woocommerce_states'); add_filter('woocommerce_countries_allowed_country_states','sa_woocommerce_state');

function SA_woocommerce_states( $states ) Add this snippet to the {functions.php file of your theme to add a new country to the WooCommerce countries list.

add_filter('woocommerce_states', 'sa_woocommerce_states');
add_filter('woocommerce_countries_allowed_country_states','sa_woocommerce_state');

function SA_woocommerce_states( $states ) {

    $states['ZA']['EC'] = __('Eastern Cape', 'woocommerce');
    return $states;
}

}

Add this snippet to the functions.php file of your theme to add a new country to the WooCommerce countries list.

add_filter('woocommerce_states', 'sa_woocommerce_states'); add_filter('woocommerce_countries_allowed_country_states','sa_woocommerce_state');

function SA_woocommerce_states( $states ) {

$states['ZA']['EC'] = __('Eastern Cape', 'woocommerce');
return $states;

}

Add this snippet to the functions.php file of your theme to add a new country to the WooCommerce countries list.

add_filter('woocommerce_states', 'sa_woocommerce_states');
add_filter('woocommerce_countries_allowed_country_states','sa_woocommerce_state');

function SA_woocommerce_states( $states ) {

    $states['ZA']['EC'] = __('Eastern Cape', 'woocommerce');
    return $states;
}
Rollback to Revision 3 - Edit approval overridden by post owner or moderator
Source Link

Add this snippet to the functions.php file of your theme to add a new country to the WooCommerce countries list.

add_filter('woocommerce_states', 'sa_woocommerce_states'); add_filter('woocommerce_countries_allowed_country_states','sa_woocommerce_state');

function SA_woocommerce_states( $states ) {

add_filter('woocommerce_states', 'sa_woocommerce_states');
add_filter('woocommerce_countries_allowed_country_states','sa_woocommerce_state');

function SA_woocommerce_states( $states ) {

    $states['ZA']['EC'] = __('Eastern Cape', 'woocommerce');
    return $states;
}

}

Add this snippet to the functions.php file of your theme to add a new country to the WooCommerce countries list.

add_filter('woocommerce_states', 'sa_woocommerce_states');
add_filter('woocommerce_countries_allowed_country_states','sa_woocommerce_state');

function SA_woocommerce_states( $states ) {

    $states['ZA']['EC'] = __('Eastern Cape', 'woocommerce');
    return $states;
}

Add this snippet to the functions.php file of your theme to add a new country to the WooCommerce countries list.

add_filter('woocommerce_states', 'sa_woocommerce_states'); add_filter('woocommerce_countries_allowed_country_states','sa_woocommerce_state');

function SA_woocommerce_states( $states ) {

$states['ZA']['EC'] = __('Eastern Cape', 'woocommerce');
return $states;

}

Add this snippet to the functions.php file of your theme to add a new country to the WooCommerce countries list.

add_filter('woocommerce_states', 'sa_woocommerce_states'); add_filter('woocommerce_countries_allowed_country_states','sa_woocommerce_state');

function SA_woocommerce_states( $states ) {

add_filter('woocommerce_states', 'sa_woocommerce_states');
add_filter('woocommerce_countries_allowed_country_states','sa_woocommerce_state');

function SA_woocommerce_states( $states ) {

    $states['ZA']['EC'] = __('Eastern Cape', 'woocommerce');
    return $states;
}

}

Add this snippet to the functions.php file of your theme to add a new country to the WooCommerce countries list.

add_filter('woocommerce_states', 'sa_woocommerce_states'); add_filter('woocommerce_countries_allowed_country_states','sa_woocommerce_state');

function SA_woocommerce_states( $states ) {

$states['ZA']['EC'] = __('Eastern Cape', 'woocommerce');
return $states;

}

Add this snippet to the functions.php file of your theme to add a new country to the WooCommerce countries list.

add_filter('woocommerce_states', 'sa_woocommerce_states');
add_filter('woocommerce_countries_allowed_country_states','sa_woocommerce_state');

function SA_woocommerce_states( $states ) {

    $states['ZA']['EC'] = __('Eastern Cape', 'woocommerce');
    return $states;
}
added 46 characters in body
Source Link
Loading
added 45 characters in body
Source Link
Loading
Post Undeleted by vikrant zilpe
Post Deleted by vikrant zilpe
Source Link
Loading