site_health_test_rest_capability_{$check}

site_health_test_rest_capability_{$check}

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('site_health_test_rest_capability_{$check}') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-site-health-controller.php line 199
    		 *
    		 * @param string $default_capability The default capability required for this check.
    		 * @param string $check              The Site Health check being performed.
    		 */
    		$capability = apply_filters( "site_health_test_rest_capability_{$check}", $default_capability, $check );
    
    		return current_user_can( $capability );
    	}
    
    	/**
    	 * Checks if background updates work as expected.