Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    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;
    }

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    I meant, does it work for real posts (WordPress blog posts).

    Thread Starter oneart

    (@oneart)

    Yes it does.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    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

    Thread Starter oneart

    (@oneart)

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘No comment notification e-mail to the post author’ is closed to new replies.