mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
Docs: Document more parameters and properties using typed array notation.
See #41756 git-svn-id: https://develop.svn.wordpress.org/trunk@42876 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -610,9 +610,9 @@ class WP_User {
|
||||
* @since 2.9.0
|
||||
* @since 3.6.0 Added $old_roles to include an array of the user's previous roles.
|
||||
*
|
||||
* @param int $user_id The user ID.
|
||||
* @param string $role The new role.
|
||||
* @param array $old_roles An array of the user's previous roles.
|
||||
* @param int $user_id The user ID.
|
||||
* @param string $role The new role.
|
||||
* @param string[] $old_roles An array of the user's previous roles.
|
||||
*/
|
||||
do_action( 'set_user_role', $this->ID, $role, $old_roles );
|
||||
}
|
||||
@@ -750,10 +750,10 @@ class WP_User {
|
||||
* @since 2.0.0
|
||||
* @since 3.7.0 Added the user object.
|
||||
*
|
||||
* @param array $allcaps An array of all the user's capabilities.
|
||||
* @param array $caps Actual capabilities for meta capability.
|
||||
* @param array $args Optional parameters passed to has_cap(), typically object ID.
|
||||
* @param WP_User $user The user object.
|
||||
* @param bool[] $allcaps An array of all the user's capabilities.
|
||||
* @param string[] $caps Actual capabilities for meta capability.
|
||||
* @param array $args Optional parameters passed to has_cap(), typically object ID.
|
||||
* @param WP_User $user The user object.
|
||||
*/
|
||||
$capabilities = apply_filters( 'user_has_cap', $this->allcaps, $caps, $args, $this );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user