I am trying to change the 'city' label in the address filed to 'Suburb'.
I am using filters within functions.php but it keeps breaking when i add this filter.
My funcitons code is here...
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
if ( function_exists('register_sidebar') ) {
register_sidebar(array(
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>',
));
}
?>
<?php
add_filter("gform_address_types", "aus_address", 10, 2);
function aus_address($address_types, $form_id){
$address_types["australia"] = array(
"label" => "Australia",
"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;
}
?>
?>
How do i now add the label change to above code without it breaking the site?