apply_filters( ‘validate_theme_requirements’, bool|WP_Error $met_requirements, string $stylesheet )

In this article

Filters the theme requirement validation response.

Description

If a theme fails due to a Core-provided validation (incompatible WP, PHP versions), this filter will not fire. A WP_Error response will already be returned.

This filter is intended to add additional validation steps by site administrators.

Parameters

$met_requirementsbool|WP_Error
True if the theme meets requirements, WP_Error if not.
$stylesheetstring
Directory name for the theme.

Source

return apply_filters( 'validate_theme_requirements', true, $stylesheet );

Changelog

VersionDescription
6.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.