[wp-hackers] Capabilities and Plugins
Mark Jaquith
mark.wordpress at txfx.net
Sun Mar 5 07:02:33 GMT 2006
As it is now, there is no way for a third party role manager plugin
(like Owen's... is there another one?) to know about the capabilities
that a plugin uses unless that plugin adds the capability to an
existing role.
I can think of two solutions:
An easy way to add the plugin's capability to all roles with
manage_options capability (which is, IMO, the best way to determine
the most authoritative users on the WP install). Then, the role
manager plugin will display that capability and it can be added to
other roles.
Or, create a new function that allows plugins to register their
capabilities (in memory). Then, a role manager plugin could merge
capabilities defined in the database with default capabilities plus
capabilities registered by plugins on the fly.
As it is, the plugin would have to have its own mini role management
code, which seems wasteful to me.
--
Mark Jaquith
http://txfx.net/
More information about the wp-hackers
mailing list