Support

Account

Home Forums General Issues Function that get ACF fields value before saving Reply To: Function that get ACF fields value before saving

  • Hi @gani

    The get_field function is retuning the data which is already saved, this is because your code is running BEFORE acf has saved the data.

    To run your code AFTER acf has saved, hook into the acf/save_post action (checkout the docs for more info). be sure to add the action with a priority AFTER 10.

    Thanks
    E