Skip to content

Editing ACF fields then Publish ignores changes #1

@jamiechong

Description

@jamiechong
  1. Revisionize
  2. Edit ACF Fields
  3. Click Publish

Result: The revision is published, but the ACF fields aren't.
Reason: transition_post_status hook fires too early. The revision $post content has been saved, but its meta fields have not (they're saved shortly after). So the meta fields of the revision aren't updated when we copy_post over top of the original.
Fix: Need to hook into an action later on. Possibly publish_post.

Work Around

  1. Revisionize
  2. Edit ACF Fields
  3. Click Save Draft
  4. Click Publish

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions