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

  • (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.
  • (bool[]) Filtered array of the user's capabilities.
Defined at:


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_lazyload_site_meta

Top Google Results

User discussions

wpseek mobile