network_allowed_themes WordPress Filter Hook

This hook is called when a network is allowed to add/enable a theme. This hook is useful for plugin authors who need to know when a theme is added or enabled on a network.

apply_filters( 'network_allowed_themes', string[] $allowed_themes, int $blog_id ) #

Filters the array of themes allowed on the network.


Description

Site is provided as context so that a list of network allowed themes can be filtered further.


Top ↑

Parameters

$allowed_themes

(string[])An array of theme stylesheet names.

$blog_id

(int)ID of the site.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.