Title: Code error in Simple_Job_Board_Notifications class
Last modified: August 25, 2018

---

# Code error in Simple_Job_Board_Notifications class

 *  Resolved [clembibi33](https://wordpress.org/support/users/clembibi33/)
 * (@clembibi33)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/code-error-in-simple_job_board_notifications-class/)
 * Hi,
    I detected an error in the Simple_Job_Board_Notifications class (includes/
   class-simple-job-board-notifications.php). In the job_notification_templates 
   method :
 * $message = self::email_start_template($notification_receiver, $post_id);
    BUT
   public static function email_start_template( $post_id, $notification_receiver){…}
 * Both parameters are reversed 🙁
 * And can you also propose filters on $headers[] variables in :
    – admin_notification
   method, – hr_notification method, – applicant_notification method (in Simple_Job_Board_Notifications
   class)
 * Thanks 😉

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

 *  Plugin Author [PressTigers](https://wordpress.org/support/users/presstigers/)
 * (@presstigers)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/code-error-in-simple_job_board_notifications-class/#post-10628401)
 * Hello [@clembibi33](https://wordpress.org/support/users/clembibi33/),
 * Thank you for writing to us.
 * Please share your site URL so that we can look into your issue.
 * Regards,
 *  Thread Starter [clembibi33](https://wordpress.org/support/users/clembibi33/)
 * (@clembibi33)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/code-error-in-simple_job_board_notifications-class/#post-10629153)
 * Hello [@presstigers](https://wordpress.org/support/users/presstigers/),
 * Here it is the website : [https://www.vitivista.com/jobs](https://www.vitivista.com/jobs)
 * Thank you
 *  Plugin Author [PressTigers](https://wordpress.org/support/users/presstigers/)
 * (@presstigers)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/code-error-in-simple_job_board_notifications-class/#post-10630263)
 * Hi [@clembibi33](https://wordpress.org/support/users/clembibi33/),
 * Thank you for replying.
 * Currently, there are no jobs available on your site for testing.
 * Please create some jobs from the backend so that we can look into your issue.
 * Regards,
 *  Thread Starter [clembibi33](https://wordpress.org/support/users/clembibi33/)
 * (@clembibi33)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/code-error-in-simple_job_board_notifications-class/#post-10630439)
 * Hi [@presstigers](https://wordpress.org/support/users/presstigers/),
 * Yes, there are no jobs yet because this part is still under development.
 * In fact, I do not have any functional problems… I contacted you for two things:
    - – To report a syntax error in the php code :
       In includes/class-simple-job-
      board-notifications.php file > job_notification_templates method, the call
      of the function is : `$message = self::email_start_template($notification_receiver,
      $post_id);` while the signature of the function is : `public static function
      email_start_template( $post_id, $notification_receiver ) {…}` Then, in the
      next update, it would have to change to : `$message = self::email_start_template(
      $post_id, $notification_receiver);`
    - – To see if it was possible to add filters for developers (apply_filters) 
      in the next release :
       In includes/class-simple-job-board-notifications.php
      file, can you add apply_filters to $headers[] variables in admin_notification
      method, hr_notification method and applicant_notification method For instance,`
      $headers[] = apply_filters('sjb_admin_notification_from', 'From: ' . get_bloginfo('
      name') . ' <' . esc_attr( $admin_email ) . '>', $admin_email);`
 * I hope I’m pretty clear 🙂
 * Regards,
 *  Plugin Author [PressTigers](https://wordpress.org/support/users/presstigers/)
 * (@presstigers)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/code-error-in-simple_job_board_notifications-class/#post-10635413)
 * [@clembibi33](https://wordpress.org/support/users/clembibi33/),
 * We apologize for the inconvenience & thank you for reporting this issue. We will
   make this change live in next release of SJB.
 * Also, we will add filters to “from parameter” of Admin, HR & Applicant email.
 * Thank you for reaching us out. Let us know if we can assist you further.
 * Regards,
    -  This reply was modified 7 years, 8 months ago by [PressTigers](https://wordpress.org/support/users/presstigers/).
 *  Thread Starter [clembibi33](https://wordpress.org/support/users/clembibi33/)
 * (@clembibi33)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/code-error-in-simple_job_board_notifications-class/#post-10636254)
 * [@presstigers](https://wordpress.org/support/users/presstigers/),
 * Thank you !
 * In the same way, can you also add filters to “Reply-to parameter” of Admin, HR
   and Applicant email ?
    For example : `$headers[] = apply_filters('sjb_admin_applicant_notification_reply_to','
   Reply-To: ' . get_bloginfo('name') . '<' . $from_email . '>',$from_email);`
 * Thank you very much,
 * Regards,
 *  Plugin Author [PressTigers](https://wordpress.org/support/users/presstigers/)
 * (@presstigers)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/code-error-in-simple_job_board_notifications-class/#post-10649461)
 * Yes, we can add. Please contact us at [support@presstigers.com](https://wordpress.org/support/topic/code-error-in-simple_job_board_notifications-class/support@presstigers.com?output_format=md)
   for the updated files. Thanks!

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

The topic ‘Code error in Simple_Job_Board_Notifications class’ is closed to new 
replies.

 * ![](https://ps.w.org/simple-job-board/assets/icon-256x256.png?rev=1829069)
 * [Simple Job Board](https://wordpress.org/plugins/simple-job-board/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-job-board/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-job-board/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-job-board/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-job-board/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-job-board/reviews/)

## Tags

 * [code error](https://wordpress.org/support/topic-tag/code-error/)

 * 7 replies
 * 2 participants
 * Last reply from: [PressTigers](https://wordpress.org/support/users/presstigers/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/code-error-in-simple_job_board_notifications-class/#post-10649461)
 * Status: resolved