• Resolved hastibe

    (@hastibe)


    I am using the “Redirect to Job Dashboard after job submission” code snippet (below) so that when a job post is submitted, the user is redirected back to the job dashboard.

    add_filter( 'job_manager_job_submitted', function() {
    if ( wp_redirect( job_manager_get_permalink( 'job_dashboard' ) ) ) {
    exit;
    }
    }, 20 );

    If I don’t use this snippet, the default behavior is that the user remains on the job post submission page (which doesn’t make sense to me, thus the snippet above), but a submitted content notification is displayed (like this), which is a helpful message for the user.

    Is there a way that the code snippet above or the job-submitted.php template, where these notifications can be found, can be modified, so that the content notification displays on the page that the user is redirected to?

    …I know any complex code customization can’t be done by official WPJM support staff here, but just in case anyone else might know, or there actually is an easy modification / pre-existing code snippet that exists to do this, I thought I’d ask (and if not, request this as an enhancement).

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hey @hastibe,

    That is definitely a great enhancement that other users might appreciate too, so I’d encourage you to file a feature request.

    I’ve asked our developers if this is something they can chime in, even if it’s out of scope, as you mentioned.

    Hello @hastibe,

    although I have not tested it, I have thought of a way to achieve that.

    First, when you redirect in the snippet above, you can add a URL argument (add_query_arg function can help with that) to specify that the user just submitted a job.

    Then you can override the job-dashboard.php template and check for the above argument (you can use the $_GET superglobal for that) right before the jobs table and display the notice if the argument exists.

    Hope that helps!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Way to show submitted content message on job dashboard?’ is closed to new replies.