WP_Theme::get_allowed_on_network

Advertisement

Summery Summery

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

Syntax Syntax

WP_Theme::get_allowed_on_network()

Return Return

(string[]) Array of stylesheet names.

Source Source

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

		 * 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;
	}

	/**
	 * Returns array of stylesheet names of themes allowed on the site.
	 *
	 * @since 3.4.0
	 *
	 * @param int $blog_id Optional. ID of the site. Defaults to the current site.

Advertisement

Changelog Changelog

Changelog
Version Description
3.4.0 Introduced.

Advertisement

Leave a Reply