UM breaks custom forms
-
Hi!
First off, I LOVE Ulitmate Member. You created a really fantastic work of art.
Having said that, unfortunately, I have to report a bug: UM breaks any custom forms and instead re-directs them to the homepage.
This is the same bug that was reported over a year ago here: https://www.ads-software.com/support/topic/submitting-front-end-form-from-custom-plugin-as-a-member-not-admin/I have a simple form
<form action="https://local.dev.com/wp-admin/admin-post.php" method="post"> <input type="radio" name="app_id" value="652" checked="checked"> Appointment 1<br> <input type="radio" name="app_id" value="451"> Appointment 2<br> <input type="hidden" name="action" value="app_payment_id_selection_form"> <input type="submit" value="Pay for selected appointment"> </form>
To then process the form, I use:
add_action( 'admin_post_app_payment_id_selection_form', 'save_requested_app_id_to_user_meta' );
In
save_requested_app_id_to_user_meta()
I process the form, save any necessary information to the database, and finally redirect the users to a different page. This works like a charm. However, the moment I activate Ultimate member, things break. Administrators are still able to fully process the form without issues. All other users, however, get redirected to the homepage instead. The form never processes and the action hooks never even get a chance to trigger.Please help!
Thanks.
- The topic ‘UM breaks custom forms’ is closed to new replies.