Core Function
View Source on Trac ↗ validate_theme_requirements()
validate_theme_requirements( mixed $stylesheet ) Validates the theme requirements for WordPress version and PHP version.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $stylesheet string | Directory name for the theme. Required |
Return Value
((true)
| WP_Error) True if requirements are met, WP_Error on failure.
Function Information
Since Version
5.5.0
Source File
wp-includes/theme.php
Advertisement