Support

Account

Home Forums ACF PRO update_field firing twice? Reply To: update_field firing twice?

  • I don’t think that it’s firing twice unless you’re calling it twice.

    The reason is that even if update_field() does the update twice this code is only called once, unless you are doing it twice

    
    $count = (int) get_field('views');
    
    // increase
    $count++;
    

    So, that means that this portion of code must be running twice.