WP_Theme::is_allowed

SummerySummery

Whether the theme is allowed (multisite only).

Syntax

WP_Theme::is_allowed( string $check = 'both', int $blog_id = null )

ParametersParameters

$check

(string) (Optional) Whether to check only the 'network'-wide settings, the 'site' settings, or 'both'. Defaults to 'both'.

Default value: 'both'

$blog_id

(int) (Optional) Ignored if only network-wide settings are checked. Defaults to current site.

Default value: null

ReturnReturn

(bool) Whether the theme is allowed for the network. Returns true in single-site.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
3.4.0 Introduced.
Scroll to Top