wp_maybe_grant_install_languages_cap


wp_maybe_grant_install_languages_cap ( $allcaps )

Parameters:
  • (array) $allcaps An array of all the user's capabilities.
Returns:
  • (array) Filtered array of the user's capabilities.
Defined at:

Description

Filters the user capabilities to grant the 'install_languages' capability as necessary.

A user must have at least one out of the 'update_core', 'install_plugins', and 'install_themes' capabilities to qualify for 'install_languages'.

Related Functions

wp_can_install_language_pack, wp_install_language_form, wp_get_installed_translations, maybe_disable_link_manager, signup_get_available_languages

Top Google Results

User discussions

wpseek mobile