Support

Account

Home Forums Backend Issues (wp-admin) Setting correct priority on publish_post action Reply To: Setting correct priority on publish_post action

  • It appears that this action is running twice when I publish a post. I used th following code as diagnostic and received two emails. Any idea what’s going on?

    function dfm_hook_test() {
    wp_mail( '[email protected]', 'Action run', 'ok' );
    }
    add_action('acf/save_post','dfm_hook_test', 20);