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:
  • 5: .

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.

Related Functions

validate_plugin_requirements, validate_active_plugins, wp_validate_redirect, wp_validate_user_request_key, validate_email

Top Google Results

User discussions

wpseek mobile