post_status ) : case 'publish': if ( resume_manager_user_can_view_resume( $resume->ID ) ) { echo '

'; echo wp_kses_post( sprintf( // translators: Placeholder is URL to view the resume. __( 'Your resume has been submitted successfully. To view your resume click here.', 'wp-job-manager-resumes' ), esc_url( get_permalink( $resume->ID ) ) ) ); echo '

'; } else { echo '

'; echo esc_html( __( 'Your resume has been submitted successfully.', 'wp-job-manager-resumes' ) ); echo '

'; } break; case 'pending': echo '

'; echo esc_html( __( 'Your resume has been submitted successfully and is pending approval.', 'wp-job-manager-resumes' ) ); if ( $job_id && 'publish' === get_post_status( $job_id ) && 'job_listing' === get_post_type( $job_id ) ) { $job_title = wpjm_get_the_job_title( $job_id ); $job_permalink = get_the_job_permalink( $job_id ); echo wp_kses_post( sprintf( // translators: %1$s is the url to the job listing; %2$s is the title of the job listing. __( ' You will be able to apply for %2$s once your resume has been approved.', 'wp-job-manager-resumes' ), $job_permalink, $job_title ) ); } echo '

'; break; default: $hook_friendly_post_status = str_replace( '-', '_', sanitize_title( $resume->post_status ) ); do_action( 'resume_manager_resume_submitted_content_' . $hook_friendly_post_status, $resume ); break; endswitch;