validate_current_theme


validate_current_theme ( No parameters )

See:
  • WP_DEFAULT_THEME
Returns:
  • (bool)
Defined at:
Change Log:
  • 6: .

Description

Checks that the active theme has the required files.Standalone themes need to have a `templates/index.html` or `index.php` template file. Child themes need to have a `Template` header in the `style.css` stylesheet. Does not initially check the default theme, which is the fallback and should always exist. But if it doesn't exist, it'll fall back to the latest core default theme that does exist. Will switch theme to the fallback theme if active theme does not validate. You can use the {@see 'validate_current_theme'} filter to return false to disable this functionality.

Related Functions

get_current_theme, validate_username, current_theme_info, current_time, get_current_site_name

Top Google Results

User discussions

wpseek mobile