public filter_user_has_cap ( array $user_caps, array $caps, array $args, WP_User $user ) : array | ||
$user_caps | array | An array of all the user's capabilities. |
$caps | array | Actual capabilities for meta capability. |
$args | array | Optional parameters passed to has_cap(), typically object ID. |
$user | WP_User | The user object. |
리턴 | array | An array of all the user's caps, with the required cap added |