Home › Forums › Gutenberg › acf_register_block_type() throwing errors in vscode › Reply To: acf_register_block_type() throwing errors in vscode
It does not make any sense why you would be getting an error that a function does not exist when you check for its existence before calling it.
But the function you are registering:
add_action('act/init', 'register_acf_block_types');
is not the same as the function you want to call:
function register_acf_block_type(){
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.