[wp-hackers] Get list of roles

Andrew Nacin wp at andrewnacin.com
Sun Sep 12 15:59:11 UTC 2010

On Sun, Sep 12, 2010 at 10:59 AM, Raj <list at expost.org> wrote:

> get_editable_roles() causes  a undefined function error when called as a
> part of the init. It works if the plugin calls it as part of some hook such
> as admin_head. Shouldn't it work when called from within a function
> attached
> to init?

No. The function is always available in the admin.


More information about the wp-hackers mailing list