Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Brett Beck

    (@icyice)

    Disregard. I see the API failure in there. I have requested to get that approved by USPS.

    It is now working for some reason after deleting my User ID. Not sure why it wasn’t working before.

    Thanks!

    There is a bug in the plugin. It is fetching the url of the attachment while wp_mail() function requires the file path (not url) to use as attachment in email. This worked for me:

    /**
     * Job Board stuffs
     *
     * */ 
    
    // Filter to Attach HR Resume
    add_filter('sjb_hr_notification_attachment', 'custom_code_for_hr_resume_attachment', 20, 2);
    add_filter('sjb_admin_notification_attachment', 'custom_code_for_hr_resume_attachment', 20, 2);
    
    function custom_code_for_hr_resume_attachment( $resume_path, $post_id ){
    
        $fileAttachment = get_post_meta($post_id, 'resume', TRUE);
        $filePath = parse_url($fileAttachment, PHP_URL_PATH);
        return array(get_home_path() . $filePath);
    }

Viewing 2 replies - 1 through 2 (of 2 total)