install_themes_upload() - WordPress 函数参考中文文档

返回介绍

install_themes_upload()

发布于 2017-09-11 字数1602 浏览 749 评论 0

install_themes_upload()

描述


源代码

File: wp-admin/includes/theme-install.php

function install_themes_upload() {
?>
<p class="install-help"><?php _e('If you have a theme in a .zip format, you may install it by uploading it here.'); ?></p>
<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo self_admin_url('update.php?action=upload-theme'); ?>">
	<?php wp_nonce_field( 'theme-upload' ); ?>
	<label class="screen-reader-text" for="themezip"><?php _e( 'Theme zip file' ); ?></label>
	<input type="file" id="themezip" name="themezip" />
	<?php submit_button( __( 'Install Now' ), '', 'install-theme-submit', false ); ?>
</form>
	<?php
}

更新日志

Version 描述
2.8.0 Introduced.

相关函数

Uses

  • wp-admin/includes/template.php:
    submit_button()
  • wp-includes/l10n.php:
    _e()
  • wp-includes/l10n.php:
    __()
  • wp-includes/functions.php:
    wp_nonce_field()
  • wp-includes/link-template.php:
    self_admin_url()

User Contributed Notes

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!