Provide an example for add_role() capabilities argument. props simonwheatley, fixes #14918.

git-svn-id: https://develop.svn.wordpress.org/trunk@15640 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-09-21 14:52:03 +00:00
parent 1b0446409c
commit 6131f69f23

View File

@ -1156,7 +1156,7 @@ function get_role( $role ) {
*
* @param string $role Role name.
* @param string $display_name Display name for role.
* @param array $capabilities List of capabilities.
* @param array $capabilities List of capabilities, e.g. array( 'edit_posts' => true, 'delete_posts' => false );
* @return null|WP_Role WP_Role object if role is added, null if already exists.
*/
function add_role( $role, $display_name, $capabilities = array() ) {