Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottlyttle/5652553 to your computer and use it in GitHub Desktop.
Save scottlyttle/5652553 to your computer and use it in GitHub Desktop.
function g8_aus_address( $address_types, $form_id ){
$address_types["australia"] = array(
"label" => "Australian",
"country" => "Australia",
"zip_label" => "Postcode",
"state_label" => "State",
"states" => array(
"NT" => "NT",
"ACT" => "ACT",
"NSW" => "NSW",
"QLD" => "QLD",
"VIC" => "VIC",
"WA" => "WA",
"SA" => "SA",
"TAS" => "TAS",
)
);
return $address_types;
}
add_filter( 'gform_address_types', 'g8_aus_address', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment