add_filter('job_bm_job_edit_errors', 'job_bm_job_edit_errors_29072019', 90, 2); function job_bm_job_edit_errors_29072019($error, $post_data){ if(empty($post_data['custom_form_field'])){ $error->add( 'custom_form_field', __( '<strong>ERROR</strong>: Field is empty.', 'job-board-manager' ) ); } return $error; }