Support » Plugin: Better Notifications for WP » Problem ACF form and Notification

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author bnfw


    Hi @ergopix,
    Thanks for your message.

    No changes have been made for a while however, you may find this support document on the subject helpful:

    Let me know how you get on?


    Thanks for your answer but it doesn’t change with this code. From backend it’s OK but front not.

    Plugin Author bnfw


    Hi @ergopix,
    Did you change the code to cater for your post type, post status, etc?
    I’ve tested it on multiple sites and whenever there’s been an issue with a notification not sending when submitted (or edited) via an ACF front-end form, it’s worked really well.

    I’ve this:

    $settings = array(
    post_title’ => true,
    post_id’ => ‘new_post’,
    uploader’ => ‘basic’,
    new_post’ => array(
    ‘post_type’ => ‘post’,
    ‘post_status’ => ‘private’
    submit_value’ => __(“Ajouter”, “ergopix”)


    function bnfw_after_save_post_pending($post_id) {
    $post = get_post($post_id);
    $post_type = get_post_type($post_id);
    $old_status = $post->post_status;
    if ($post_type === ‘post’ && $old_status === ‘private’) {
    global $wpdb;
    $bnfw = BNFW::factory();
    remove_action( ‘pending_submissions’, array( $bnfw, ‘on_post_pending’ ), 10, 2);
    ‘ID’ => $post_id,
    ‘post_status’ => ‘private’

    Plugin Author bnfw


    @ergopix Thanks.
    I think you may need to change a couple of things in your code in order to get it working:

    1. You need to set the post to move from draft to private.
    2. On line 15 of the second code block on that support document, you need to change it to your post type and post status.

    I’m unable to help with specifics custom code so you may need to ask a developer to help you with this if you can’t get it working – hope the above helps though.

    Thank you! Everythings is OK!

    Plugin Author bnfw


    Hi @ergopix,
    Great! Glad you got it working.

    If you like BNFW and the support, please feel free to leave an honest review.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.