undefined function add_setttings_field when digest addon is active
-
Hi there,
So we have the bbPress Notify (No-Spam) Digests addon active on the site, but this issue has been traced back to the core plugin.
Essentially, that addon is using
add_settings_fieldsin a function hooked to thebbpnns_register_settingsaction that runs when the...Admin_Coreconstructor is run when the class is loaded inside of theinithook. But for admin screens,init(and this function) runs well beforewp-admin/includes/template.phpis loaded, so it errors out.I’d thought that generally you can still use a function before it’s included and defined, but maybe not when it’s inside of a function hooked to an action?
Might help to move some of that into an admin_init hook?
Just thought I’d send in the note. Happy to help troubleshoot if you have any questions. Thanks!!
The topic ‘undefined function add_setttings_field when digest addon is active’ is closed to new replies.