[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.
http://core.trac.wordpress.org/browser/tags/3.0.1/wp-admin/includes/user.php#L287
    
    
More information about the wp-hackers
mailing list