Title: network_allowed_themes
Published: April 12, 2016
Last modified: May 20, 2026

---

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

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/network_allowed_themes/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/network_allowed_themes/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/network_allowed_themes/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/network_allowed_themes/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/network_allowed_themes/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/network_allowed_themes/?output_format=md#wp--skip-link--target)

Filters the array of themes allowed on the network.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/network_allowed_themes/?output_format=md#description)󠁿

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

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/network_allowed_themes/?output_format=md#parameters)󠁿

 `$allowed_themes`string[]

An array of theme stylesheet names.

`$blog_id`int

ID of the site.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/network_allowed_themes/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-theme.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/class-wp-theme.php#L1676)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/class-wp-theme.php#L1676-L1676)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/network_allowed_themes/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Theme::get_allowed()](https://developer.wordpress.org/reference/classes/wp_theme/get_allowed/)`wp-includes/class-wp-theme.php` |

Returns array of stylesheet names of themes allowed on the site or network.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/network_allowed_themes/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.5.0](https://developer.wordpress.org/reference/since/4.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fnetwork_allowed_themes%2F)
before being able to contribute a note or feedback.