Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    The subject is ran through a filter:

    $method->subject   = apply_filters( 'job_manager_application_email_subject', sprintf( __( 'Job Application via "%s" listing on %s', 'wp-job-manager' ), $post->post_title, home_url() ) );

    So you could for example use this in your theme functions.php

    add_filter( 'job_manager_application_email_subject', 'custom_job_manager_application_email_subject' );
    
    function custom job_manager_application_email_subject( $subject ) {
    global $post;
    
    $subject .= ' - ID: ' . $post->ID;
    return $subject;
    }
    Thread Starter extremer1

    (@extremer1)

    Hi Mike

    Thank you for replying to my post.
    Just added this to my theme functions.php and it gave me a white screen of death.

    Can you please advise

    Thank You

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Ah, sorry,

    function custom job_manager_application_email_subject( $subject ) {

    Should have been:

    function custom_job_manager_application_email_subject( $subject ) {
    Thread Starter extremer1

    (@extremer1)

    Hi Mike

    Thank you very much for that it works perfect.

    Just one question can I do the same so the Id of the job can be seen in the job list and the backend of the job List

    Thanks

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Hover over a job title in the backend and you’ll see it: https://dl.dropboxusercontent.com/s/mulkhl7y68titsz/2014-05-18%20at%2022.35.png

    Thread Starter extremer1

    (@extremer1)

    Hi Mike

    what can i say a big thank you for your help

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    No problem, glad to help 🙂

    p.s. if you like the plugin feel free to leave a review 😉

    Hi there,

    How do I create this also – where do I go & what do I add ?

    Thank you

    Thread Starter extremer1

    (@extremer1)

    Hi

    Goto your wordpress admin area
    Appearance
    Editor ( make sure your theme is selected on the top right hand side )
    under list on right hand side find Theme Functions (functions.php)

    In there plast this

    add_filter( ‘job_manager_application_email_subject’, ‘custom_job_manager_application_email_subject’ );

    function custom_job_manager_application_email_subject( $subject ) {
    global $post;

    $subject .= ‘ – ID: ‘ . $post->ID;
    return $subject;
    }

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Job ID into the subject line of the email’ is closed to new replies.