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. @type string $0 Requested capability. @type int $1 Concerned user ID. @type mixed ...$2 Optional second and further parameters, typically object ID. }
  • (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_dashboard_site_health, wp_maybe_update_user_counts, wp_cache_set_sites_last_changed

Top Google Results

User discussions

wpseek mobile