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 all references

$network = (array) apply_filters( 'network_allowed_themes', self::get_allowed_on_network(), $blog_id );


Top ↑

Changelog

Changelog
Version Description
4.5.0 Introduced.

Top ↑

User Contributed Notes

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