更新时间:2023-08-17 17:53:40
这是您想要的吗?
add_filter('woocommerce_countries','custom_country', 10, 1);
function custom_country($mycountry){
$mycountry = array(
'AF' => __( 'Afghanistan', 'woocommerce' ),
'IN' => __( 'India', 'woocommerce' )
);
return $mycountry;
}