Filters the user capabilities to grant the ‘view_site_health_checks’ capabilities as necessary.
(bool) (Required) An array of all the user's capabilities.
(string) (Required) Required primitive capabilities for the requested capability.
(array) (Required) Arguments that accompany the requested capability check.
- (string) Requested capability.
(int) Concerned user ID.
(mixed) Optional second and further parameters, typically object ID.
(WP_User) (Required) The user object.
(bool) Filtered array of the user's capabilities.
/** * 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'. * * @since 4.9.0