WP_Theme::get_allowed_on_network() public WP 3.4.0
Returns array of stylesheet names of themes allowed on the network.
{} It's a method of the class: WP_Theme{}
Hooks from the method
Return
String[]. Array of stylesheet names.
Usage
$result = WP_Theme::get_allowed_on_network();
Changelog
Since 3.4.0 | Introduced. |
Code of WP_Theme::get_allowed_on_network() WP Theme::get allowed on network WP 5.6
public static function get_allowed_on_network() {
static $allowed_themes;
if ( ! isset( $allowed_themes ) ) {
$allowed_themes = (array) get_site_option( 'allowedthemes' );
}
/**
* Filters the array of themes allowed on the network.
*
* @since MU (3.0.0)
*
* @param string[] $allowed_themes An array of theme stylesheet names.
*/
$allowed_themes = apply_filters( 'allowed_themes', $allowed_themes );
return $allowed_themes;
}