wp_maybe_grant_install_languages_cap


wp_maybe_grant_install_languages_cap ( $allcaps )

Parameters:
  • (bool[]) allcaps An array of all the user's capabilities.
Returns:
  • (bool[]) 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_maybe_grant_site_health_caps, wp_install_language_form, wp_maybe_grant_resume_extensions_caps, wp_maybe_transition_site_statuses_on_update

Top Google Results

User discussions

wpseek mobile