To remove state field from checkout form, add following code in child theme functions.php file –
add_filter( 'rtcl_checkout_fields', function ( $fields ) {
if ( isset( $fields['billing']['billing_state'] ) ) {
unset( $fields['billing']['billing_state'] );
}
return $fields;
}, 20 );
To change Zipcode text to Postcode in checkout form, add following code in child theme functions.php file –
add_filter( 'rtcl_checkout_fields', function ( $fields ) {
if ( isset( $fields['billing']['billing_postcode'] ) ) {
$fields['billing']['billing_postcode']['label'] = __( 'Postcode', 'classified-listing' );
}
return $fields;
}, 20 );