Viewing 15 replies - 1 through 15 (of 25 total)
  • Thread Starter xhiena

    (@xhiena)

    Found it :p

    get_post_meta($post_id, ‘resume’, TRUE);

    Thank you xhiena. Can you please explain where to place this?

    I understand that it should be placed in the class-simple-job-board-notification.php file. but where exactly?

    I think it needs to be placed somewhere in this command:
    $attachment = apply_filters( ‘sjb_hr_notification_attachment’ , ” , $post_id );

    Appreciate your input

    This would be very useful for me, too. ??

    Maybe xhiena or PressTigers could help with the code ?

    Plugin Author PressTigers

    (@presstigers)

    Use ‘sjb_hr_notification_attachment’ filter to attach applicant resume.

    Can you be more specific of how to do this?

    What file do we edit and what is the exact code we place?

    Thanks!

    Plugin Author PressTigers

    (@presstigers)

    Hi Bobbiermckee,

    Currently this functionality is not available in plugin. You have to understand the code structure first and then write custom code for it.

    Kindly re-read above threads and you will get to know how can customize code.

    Following is sample code and you can place this code in your theme functions.php file to keep changes on plugin updates.

    // Filter to Attach HR Resume
    add_filter('sjb_hr_notification_attachment', 'custom_code_for_hr_resume_attachment');
    
    function custom_code_for_hr_resume_attachment(){
    
    // Write custom code here
    }

    Thanks & Regards,
    PressTigers

    Hi again,

    I have added the below code to functions.php

    // Filter to Attach HR Resume
    add_filter('sjb_hr_notification_attachment', 'custom_code_for_hr_resume_attachment');
    
    function custom_code_for_hr_resume_attachment(){
    // Write custom code here
    return get_post_meta($post_id, 'resume', TRUE);
    }

    But the attachment is still not being attached in the email to HR. Appreciate your usual support and guidance.

    Plugin Author PressTigers

    (@presstigers)

    Hello alijabari,

    Resume is not being attached because your are not getting $post_id. It is empty until unless you can get it from filter.

    Please get $post_id from filters parameters.

    Thanks & Regards,
    PressTigers

    I would highly appreciate some guidelines on how to do that

    Plugin Author PressTigers

    (@presstigers)

    Hi alijabari,

    Please follow the below snippet of code for getting filter parameters.

    // Filter to Attach HR Resume
    add_filter('sjb_hr_notification_attachment', 'custom_code_for_hr_resume_attachment', 20, 2);
    
    function custom_code_for_hr_resume_attachment( $resume_path, $post_id ){
    // Write custom code here
    }

    Thanks & Regards,
    PressTigers

    Could you possibly add a step by step guide on how to add CVs to the email that goes to HR. It is really important to us too. I just can’t really follow the instructions that you have given above.

    Thanks

    Plugin Author PressTigers

    (@presstigers)

    Hi argilmour,

    There is nothing complex in code. You just need to put this snippet of code in your theme or plugin where you need these changes and write custom code for resume attachment.

    // Filter to Attach HR Resume
    add_filter('sjb_hr_notification_attachment', 'custom_code_for_hr_resume_attachment', 20, 2);
    
    function custom_code_for_hr_resume_attachment( $resume_path, $post_id ){
    
    // Write custom code here.
    return get_post_meta($post_id, 'resume', TRUE);
    
    }

    Thanks & Regards,
    PressTigers

    Thanks

    The problem that I have and the others on the this feed is that we don’t know how to write the custom code.

    Thanks

    Andrew

    Plugin Author PressTigers

    (@presstigers)

    You can add following line of code in above mentioned function.

    return get_post_meta($post_id, 'resume', TRUE);

    – PressTigers

    Hello,

    I have added the following to my Theme Functions (functions.php) file but I am still unable to get CVs attached to the email that goes to HR. Can you please advise on what else I need to do?

    Thanks

    Andrew

    // Filter to Attach HR Resume
    add_filter(‘sjb_hr_notification_attachment’, ‘custom_code_for_hr_resume_attachment’, 20, 2);

    function custom_code_for_hr_resume_attachment( $resume_path, $post_id ){
    return get_post_meta($post_id, ‘resume’, TRUE);
    }

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘Send the uploaded CV to HR’ is closed to new replies.