- This topic has 6 replies, 3 voices, and was last updated 4 years, 1 month ago by
wensolutions.
- AuthorPosts
- April 16, 2019 at 10:47 am #13744
mashaku
ParticipantHello, I’ve just installed your plugin WP Travel Field Editor and tried to remove fields from the forms.
the site travelcostablanca.ru
But unfortunately I don’t have remove simbol
http://prntscr.com/ncn5l8
And also I would like to remove all billing form from with all fields
Regards,
MariaApril 17, 2019 at 6:30 am #13769Support Team
KeymasterHello @mashaku,
Thank you very much for buying the addon.
For your information, you will not be able to remove the default fields. You will be only able to edit the label but not the field. But you will be able to add/remove/delete the newly added field.
For more clear information please refer to the official documentation below:
https://wptravel.io/documentations/wp-travel-field-editor/
Also, the plugin has already provided the filter using which you will be able to completely remove the field.
function test_fields( $fields ) { unset( $fields['billing_fields'] ); return $fields; } add_filter( 'wp_travel_checkout_fields', 'test_fields' );
Hope this helps.
Thank you.
April 20, 2019 at 9:32 pm #13914mashaku
ParticipantHello.
I try to add it, but there is some error im the code
Parse error: syntax error, unexpected ‘&’, expecting ‘]’ in /var/www/u0437264/data/www/travelcostablanca.ru/wp-content/themes/travel-log-child/functions.php on line 383April 22, 2019 at 4:01 am #13935wensolutions
KeymasterHello,
The error might have rised because you have made some changes in the code snippet given above. Make sure no any modification are made in the snippet and try again.
If the issue still persist, kindly let us know along with the screenshot of the error so that we can inspect the issue further,
Best Regards!!
April 26, 2019 at 8:48 am #14171mashaku
ParticipantHi, Team
It works! Thank you very much
RegardsApril 26, 2019 at 9:02 am #14173mashaku
ParticipantMaybe it is also possible to disable the field “Date of Birth” in the “Traveler info” form?
April 26, 2019 at 9:21 am #14176wensolutions
KeymasterHello @mashakhu,
The default field cannot be deleted but only newly added field. So if not required then you can uncheck the box for required field.
Screenshot:
This way it is not compulsory to fill up the DOB form.
Hope this clears the confusion.
Thank you.
- AuthorPosts
- The forum ‘WP Travel Custom Filters’ is closed to new topics and replies.