wp_maybe_grant_site_health_caps


wp_maybe_grant_site_health_caps ( $allcaps, $caps, $args, $user )

Parameters:
  • (bool[]) $allcaps An array of all the user's capabilities.
  • (string[]) $caps Required primitive capabilities for the requested capability.
  • (array) $args { Arguments that accompany the requested capability check.
  • (WP_User) $user The user object.
Returns:
  • (bool[]) Filtered array of the user's capabilities.
Defined at:

Description

Filters the user capabilities to grant the 'view_site_health_checks' capabilities as necessary.

Related Functions

wp_maybe_grant_resume_extensions_caps, wp_maybe_grant_install_languages_cap, wp_cache_set_sites_last_changed, wp_validate_site_data, wp_maybe_update_network_site_counts

Top Google Results

User discussions

wpseek mobile