I am looking for a way or some advice on how to achieve the following.
I want to be able to change to flow of how a user registers for adding a job lisitngs. The current flow is as follows
- User adds job details
- User then hits the “preview” button
- At this point, the user is prompted to either log in or register.
- User logs in or registers
- User then sees the previewed item
- User submits listing
What I want to have happen is ad follows:
- User adds job details
- User hits the “preview” button
- User sees the previewed items
- User tries to submit listing
- System only now prompts the user for a login or register
- User logs in/registers
- Listing is submitted
Now I know we can disable the user register field on the add listing page by using the following code to our functions.php:
add_filter( 'submit_job_form_show_signin', '__return_false' );
But I can’t find a way anywhere on how to ask for the registration/login from the submit button on the preview page, any have any idea how I would go about achieving this?
Regards,
I know this is an old post but hope this can help. There are noticeably a few filters & actions in wp job manager you can hook to insert login/ register form in job submit flow.
However, merely disabling the login form from the submit form they way your doing by adding below filter is not a good idea:
Note: WP Job Manager Submit Form template checks for the below capabilities before rendering the
job submit form
(So don’t forget to set access for guest user)A better way to manipulate job submission flow is, I think through Steps wizard or through the following filter:
submit_job_steps
hook to above filter to modify the flow, just change the priority of following callbacks submit, preview and done:
However, if you still wish to go the path you are doing (Note recommended) you can do so by modifying the
WP-Job-Manager/templates/job-preview.php
, add the below line to the end.