I prefer to put my custom metadata in plugins rather than themes, but I can’t figure out what hook to use to get register_field_group to fire appropriately. Any ideas? Thanks in advance.
@randy
Call register_field_group on “init”
Thanks. Pretty sure I tried that yesterday, but must have had something else wrong.
You can also hook into “acf/register_fields”, although I’m not sure of the benefits or downsides to either approach.
Hi @randy
You can hook into the plugins_loaded action. This will ensure that ACF is active, but is before the init action