Home › Forums › Add-ons › Options Page › using options page fields for update messages › Reply To: using options page fields for update messages
i digged some more into it: the $gk_messages array from my code example above contains this at the time of editing the custom post type
[05-May-2019 11:32:59 UTC] write_log debug - context: test
[05-May-2019 11:32:59 UTC] Array
(
[post] => Array
(
[0] =>
[1] => Beitrag aktualisiert. <a href="https://dev.TLD.de/ww/test/">Anschauen</a>
[2] => Benutzerdefiniertes Feld aktualisiert.
[3] => Benutzerdefiniertes Feld gelöscht.
[4] => Beitrag aktualisiert.
[5] =>
[6] => Post published. <a href="https://dev.TLD.de/ww/test/">View post</a>
[7] => Beitrag gespeichert.
[8] => Post submitted. <a target="_blank" href="https://dev.TLD.de/ww/test/?preview=true">Preview post</a>
[9] => Post scheduled for: <strong>Apr 29, 2019 @ 14:18</strong>. <a target="_blank" href="https://dev.TLD.de/ww/test/">Preview post</a>
[10] => Post draft updated. <a target="_blank" href="https://dev.TLD.de/ww/test/?preview=true">Preview post</a>
)
[ww] => Array
(
[0] =>
[1] =>
[2] =>
[3] =>
[4] =>
[5] =>
[6] =>
[7] =>
[8] =>
[9] => <strong>Apr 29, 2019 @ 14:18</strong>.
[10] =>
)
...
it looks like that get_field values are empty and so the array values are empty, too.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.