Support

Account

Home Forums Front-end Issues acf_form() and post locking Reply To: acf_form() and post locking

  • This is something I have not seen come up before, but probably a good question. Because ACF will not know how a particular site needs to work I don’t think you see it added. But this is something you can manage yourself. Before calling ACF form test to see if the post is locked https://codex.wordpress.org/Function_Reference/wp_check_post_lock, if it is then do not call acf_form() and show your own message about the post being locked. You can also lock https://codex.wordpress.org/Function_Reference/wp_set_post_lock and unlock the page. I’m sure there’s more to it.

    But no this is not something that ACF does and I cannot recall it coming as a topic here before. You might want to submit the feature request in a new ticket https://support.advancedcustomfields.com/new-ticket/