Summery Summery
Filters the user capabilities to grant the ‘install_languages’ capability as necessary.
Syntax Syntax
Description Description
A user must have at least one out of the ‘update_core’, ‘install_plugins’, and ‘install_themes’ capabilities to qualify for ‘install_languages’.
Parameters Parameters
- $allcaps
-
(Required) An array of all the user's capabilities.
Return Return
(bool[]) Filtered array of the user's capabilities.
Source Source
File: wp-includes/capabilities.php
* @since 3.0.0 * * @global array $super_admins * * @param int $user_id ID of the user Super Admin privileges to be revoked from. * @return bool True on success, false on failure. This can fail when the user's email * is the network admin email or when the `$super_admins` global is defined.
Advertisement
Changelog Changelog
Version | Description |
---|---|
4.9.0 | Introduced. |