WordPress.org

Make WordPress Core

Changeset 15640


Ignore:
Timestamp:
09/21/2010 02:52:03 PM (9 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/capabilities.php

    r15608 r15640  
    11571157 * @param string $role Role name.
    11581158 * @param string $display_name Display name for role.
    1159  * @param array $capabilities List of capabilities.
     1159 * @param array $capabilities List of capabilities, e.g. array( 'edit_posts' => true, 'delete_posts' => false );
    11601160 * @return null|WP_Role WP_Role object if role is added, null if already exists.
    11611161 */
Note: See TracChangeset for help on using the changeset viewer.