Does it work for posts? We’re talking about WordPress comments, right?
Thread Starter
oneart
(@oneart)
No, it doesn’t work for job posts. When a new comment is added on a job post, the author of the job post doesn’t get any email about the comment.
The settings for the comments are the following;
1. “E-mail me whenever anyone posts a comment” is checked in Discussion < Settings < WordPress.
2. in the functions.php;
add_filter( ‘register_post_type_job_listing’, ‘custom_register_post_type_job_listing’ );
function custom_register_post_type_job_listing( $args ) {
$args[‘supports’][] = ‘comments’;
return $args;
}
add_filter( ‘submit_job_form_save_job_data’, ‘custom_submit_job_form_save_job_data’ );
function custom_submit_job_form_save_job_data( $args ) {
$args[‘comment_status’] = ‘open’;
return $args;
}
I meant, does it work for real posts (WordPress blog posts).
Looks like this was to do with roles. WP only checks ‘read_post’. This commit fixes this and adds new capabilities for job listings:
https://github.com/mikejolley/WP-Job-Manager/commit/a37cef7e90493bf3f2a8f2e0cfd127e9b681eac0