Support

Account

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(){