Home › Forums › Gutenberg › Passing a variable to custom block from inside the editor. › Reply To: Passing a variable to custom block from inside the editor.
Hi,
it did work via the old
acf_register_block_type
function and global php variables.
But with the new register_acf_blocks the global php variables seem not to work anymore.
I think this is because the php files are not “connected” anymore.
So f there is not wp trick something for this the only two solutions I can imagine are cookies or javascript.
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.