validate_theme_requirements ( $stylesheet )
- (string) stylesheet Directory name for the theme.
- (bool|WP_Error) True if requirements are met, WP_Error on failure.
- Introduced in WordPress: 5.5.0
- Deprecated in WordPress: —
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.
If the headers are not present in the theme's stylesheet file,
`readme.txt` is also checked as a fallback.