WP_Theme::__construct

SummerySummery

Constructor for WP_Theme.

Syntax

WP_Theme::__construct( string $theme_dir, string $theme_root, WP_Theme|null $_child = null )

ParametersParameters

$theme_dir

(string) (Required) Directory of the theme within the theme_root.

$theme_root

(string) (Required) Theme root.

$_child

(WP_Theme|null) (Optional) If this theme is a parent theme, the child may be passed for validation purposes.

Default value: null

SourceSource

File: wp-includes/class-wp-theme.php


			

ChangelogChangelog

Changelog
Version Description
3.4.0 Introduced.
Scroll to Top