• Resolved spiderdev91

    (@spiderdev91)


    I am using your plugin as well as Advanced Custom Fields PRO on my site. However, when ACF PRO is activated, your plugin does not send email notifications. When I deactivate ACF PRO, the email notifications go through successfully.

    Specifically, I am using your plugin to send email notifications when an event (submitted via The Events Calendar Pro Community Events) is published. There doesn’t seem to be any conflict between The Events Calendar and your plugin. It’s only when ACF PRO is activated that the notifications do not go through.

    The site is hosted on WP Engine but there doesn’t seem to be any mail delivery problems. The wp_mail() function works correctly.

Viewing 1 replies (of 1 total)
  • Plugin Author Kuba Mikita

    (@kubitomakita)

    Hi @spiderdev91, it’s very tricky when it comes to ACF support. It doesn’t work because the action is postponed when ACF plugin is active. I addressed this issue couple of times already but still, as you can see, there are problems.

    The main issue is that when we’ll not postpone the action, it won’t get noticed of the custom fields change.

    So apparently when The Events Calendar Pro Community Events plugin saves the post, the ACF action is not executed. I think you could add this snippet to your WordPress to make a bypass:

    function notification_acf_save_post_bypass( $post_id ) {
    	do_action( 'acf/save_post', $post_id );
    }
    add_action( 'save_post', 'notification_acf_save_post_bypass' );

    You can paste it in your theme’s functions.php file.

Viewing 1 replies (of 1 total)
  • The topic ‘Conflict with Advanced Custom Fields’ is closed to new replies.