wpmu_activate_stylesheet()
云策文档标注
概述
wpmu_activate_stylesheet() 是一个 WordPress 函数,用于加载特定于当前页面的样式表。该函数在 WordPress MU 3.0.0 版本中引入。
关键要点
- 函数名称:wpmu_activate_stylesheet()
- 主要功能:加载页面特定的样式
- 引入版本:WordPress MU 3.0.0
原文内容
Loads styles specific to this page.
Source
function wpmu_activate_stylesheet() {
?>
.wp-activate-container { width: 90%; margin: 0 auto; }
.wp-activate-container form { margin-top: 2em; }
#submit, #key { width: 100%; font-size: 24px; box-sizing: border-box; }
#language { margin-top: 0.5em; }
.wp-activate-container .error { background: #f66; color: #333; }
span.h3 { padding: 0 8px; font-size: 1.3em; font-weight: 600; }
Changelog
| Version | Description |
|---|---|
| MU (3.0.0) | Introduced. |