Skip to content

Hooks/Filters/ACF the_row() call may return a string instead of an array on early execution #154

@ernestmarcinko

Description

@ernestmarcinko

Similar issue described here.

The issue can be triggered when "Upading" or adding a new post with a repeater field set. The most likely cause is the timing of the hook "save_post" or "wp_insert_post" or during a status change.

To resolve repeated triggers for each action a queue should be implemented to prevent duplicated execution of the same hook.

  • When "save_post" or "wp_insert_post" etc.. are triggered a queue is formed
  • A later hook (or for safety multiple hooks) should execute the queue, ex: shutdow, admin_bar_menu, wp_footer

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions