keanggotaan_registrasi: kota atau kota
add_filter( 'wcfm_membership_registration_fields_address', function( $address_fields ) {
if( isset( $address_fields['city'] ) ) {
$address_fields['city']['custom_attributes'] = array( 'required' => 1 );
}
$address_fields = wcfm_hide_field( 'addr_1', $address_fields );
$address_fields = wcfm_hide_field( 'addr_2', $address_fields );
$address_fields = wcfm_hide_field( 'state', $address_fields );
$address_fields = wcfm_hide_field( 'zip', $address_fields );
$address_fields = wcfm_hide_field( 'country', $address_fields );
return $address_fields;
}, 50 );
Gentle Gull