wpmu_activate_stylesheet() WordPress Function

The wpmu_activate_stylesheet() function is used to activate a WordPress Multisite theme. This function takes the name of the theme as an argument and returns true if the theme is successfully activated.

wpmu_activate_stylesheet() #

Loads styles specific to this page.


Source

File: wp-activate.php

function wpmu_activate_stylesheet() {
	?>
	<style type="text/css">
		form { margin-top: 2em; }
		#submit, #key { width: 90%; font-size: 24px; }
		#language { margin-top: .5em; }
		.error { background: #f66; }
		span.h3 { padding: 0 8px; font-size: 1.3em; font-weight: 600; }
	</style>
	<?php
}

Top ↑

Changelog

Changelog
VersionDescription
MU (3.0.0)Introduced.

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.