Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/12/2015 12:49:36 AM (11 years ago)
Author:
tw2113
Message:

First pass at BP-Core docs cleanup.

See #6398.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-caps.php

    r9957 r10012  
    1212
    1313/**
    14  * Return an array of roles from the currently loaded blog
     14 * Return an array of roles from the currently loaded blog.
    1515 *
    1616 * WordPress roles are dynamically flipped when calls to switch_to_blog() and
     
    133133 *       args.
    134134 *
    135  * @param array $caps See {@link WP_User::has_cap()}.
    136  * @param string $cap See {@link WP_User::has_cap()}.
    137  * @param int $user_id See {@link WP_User::has_cap()}.
    138  * @param mixed $args See {@link WP_User::has_cap()}.
     135 * @param array  $caps    See {@link WP_User::has_cap()}.
     136 * @param string $cap     See {@link WP_User::has_cap()}.
     137 * @param int    $user_id See {@link WP_User::has_cap()}.
     138 * @param mixed  $args    See {@link WP_User::has_cap()}.
     139 *
    139140 * @return array Actual capabilities for meta capability. See {@link WP_User::has_cap()}.
    140141 */
     
    186187 *
    187188 * @param string $role The role for which you're loading caps.
     189 *
    188190 * @return array Capabilities for $role.
    189191 */
     
    273275 *     @type mixed $a,...   Optional. Extra arguments applicable to the capability check.
    274276 * }
     277 *
    275278 * @return bool True if the user has the cap for the given parameters.
    276279 */
     
    335338 * @see WP_User::has_cap()
    336339 *
    337  * @param array $allcaps The caps that WP associates with the given role.
    338  * @param array $caps The caps being tested for in WP_User::has_cap().
    339  * @param array $args Miscellaneous arguments passed to the user_has_cap filter.
     340 * @param array  $caps    The caps that WP associates with the given role.
     341 * @param string $cap     The caps being tested for in WP_User::has_cap().
     342 * @param int    $user_id ID of the user being checked against.
     343 * @param array  $args    Miscellaneous arguments passed to the user_has_cap filter.
     344 *
    340345 * @return array $allcaps The user's cap list, with 'bp_moderate' appended, if relevant.
    341346 */
Note: See TracChangeset for help on using the changeset viewer.