validate_theme_requirements


validate_theme_requirements ( $stylesheet )

Parameters:
  • (string) stylesheet Directory name for the theme.
Returns:
  • (bool|WP_Error) True if requirements are met, WP_Error on failure.
Defined at:

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. If the headers are not present in the theme's stylesheet file, `readme.txt` is also checked as a fallback.

Related Functions

validate_plugin_requirements, wp_validate_redirect, validate_active_plugins, wp_validate_user_request_key, validate_email

Top Google Results

User discussions

wpseek mobile