validate_theme_requirements
validate_theme_requirements ( $stylesheet )
Parameters:- (string) stylesheet Directory name for the theme.
Returns:- (true|WP_Error) True if requirements are met, WP_Error on failure.
Defined at:Change Log: - Introduced in WordPress: 5.5.0
- Deprecated in WordPress: —
Description
Validates the theme requirements for WordPress version and PHP version.Uses the information from `Requires at least` and `Requires PHP` headers
defined in the theme's `style.css` file.