How to create a website using WordPress/How to use plugins/No-code construction blog
How to delete required items for membership registration in the MTS booking system business version
At HanamiWEB Online School,
●Ask questions in real-time in the virtual study room!
●Ask as many questions as you want via chat!
●E-learning materials that you can learn as much as you want, 24 hours a day!
All included for just 2,500 yen/month!
I bought the business version of the MTS booking system to set up a reservation form with member registration functionality on my client's website, and I got hooked...
There was an explanation on the official website so I thought I could get there quickly, but...
This will be kept as a record.
Below we explain how to use the free MTS booking system!
Removed address field from member registration form
What I wanted to do was to remove the address field from the membership registration form.
All you have to do is modify the "lib/MtssbUserFormTemp.php" file. The input form can be deleted quickly.
It is also featured on the official website
Ver.1.20 Added user registration front-end function
Simply deleting the address field will result in an error.
The address field is required.
add_filter('mtssb_register_items', 'register_items'); function register_items($items) { $items['address'] = false; return $items; }
I thought it would be OK if I put this in "lib/MtssbUserFormTemp.php", but an error occurred and the screen would not be displayed.
I tried looking in various places, but no matter where I put it, I get an error.
Correct location for validation processing
It was function.php...
I was wondering what it was. I was troubled by this for a few hours.
For example, if you delete the Seimei column for kana input
If you want to add it to your address and don't need to enter the name,
add_filter('mtssb_register_items', 'register_items'); function register_items($items) { $items['address'] = false; $items['kana'] = false; return $items; }
Add it like this!
Surprisingly simple.
I'm having trouble with WordPress! I need help! I'm offering lessons.
Please feel free to contact us!
Leave the reskilling of your website to us!
Since 2019, we have been sharing skills related to WordPress and websites. We have accumulated case studies and know-how, and are good at quickly and accurately solving problems. If you have any concerns about your website, please feel free to contact us via our official LINE account!
↑Click to open the official LINE page
Latest Articles