Remove the Preview Step from Submit Resume
-
Hi,
is it possible to remove “Preview Step” from “Submit Resume” process?
Thx Viliam
-
We have a snippet like that for jobs, here:
https://wpjobmanager.com/document/remove-the-preview-step/
… but not one for resumes I’m afraid. You could probably write one for resumes based off of the above code, but that’s not really something we can help with.
You may want to look into one of these services for help:
https://codeable.io/?ref=l1TwZ
Thanks!
Thanks!, here is changed code:
function custom_submit_resume_steps( $steps ) { unset( $steps['preview'] ); return $steps; } add_filter( 'submit_resume_steps', 'custom_submit_resume_steps' ); /** * Change button text (won't work until v1.16.2) */ function change_preview_text() { return __( 'Submit Resume' ); } add_filter( 'submit_resume_form_submit_button_text', 'change_preview_text' ); function done_publish_resume( $resume_id ) { $resume = get_post( $resume_id ); if ( in_array( $resume->post_status, array( 'preview', 'expired' ) ) ) { // Reset expirey delete_post_meta( $resume->ID, '_resume_expires' ); // Update resume $update_resume = array(); $update_resume['ID'] = $resume->ID; $update_resume['post_status'] = get_option( 'resume_manager_submission_requires_approval' ) ? 'pending' : 'publish'; $update_resume['post_date'] = current_time( 'mysql' ); $update_resume['post_date_gmt'] = current_time( 'mysql', 1 ); wp_update_post( $update_resume ); } } add_action( 'resume_manager_resume_submitted', 'done_publish_resume' );Ah, nice! Did you get it working with that code?
yes it looks like everything is working fine…Thanks a lot!
That’s perfect! Thank you very much! @viliamz
Where did you add this code? I added this to snippets for the site and it didn’t work
@realnicewebsites Adding it to the snippets should work. If it doesn’t, can you start your own thread, please?
@viliamz
Thanks for the snippet!
It seems to work for removing the preview step.
Unfortunately the “post_status” stays “preview”.
Therefor the resume is not submitted.What can i do?
Best wishes,
DanielNot working anymore with the last version off resume manager 1.17.0
🙁Hi
This code is not working with WPJM 1.32.2. What can I do?
Shuvashish
The topic ‘Remove the Preview Step from Submit Resume’ is closed to new replies.