upload_space_setting()显示博客的上传空间

目录

描述

Displays the edit blog upload space setting form on Edit Blog page.

upload_space_setting() 描述

用法

<?php upload_space_setting$id ); ?>

upload_space_setting() 用法

参数

$id

(integer) (必填) The ID of the blog to display the setting for.

默认值: None

upload_space_setting() 参数

示例

For the current blog:

/* ----------------------------------
 * wordpress之魂 © http://wphun.com
 * ---------------------------------- */

$blog_id = get_current_blog_id();

upload_space_setting( $blog_id );

upload_space_setting() 示例

注意

upload_space_setting() 注意

历史

添加于 版本: 3.0.0

upload_space_setting() 历史

源文件

upload_space_setting() 函数的代码位于 wp-admin/includes/ms.php.

/* ----------------------------------
 * wordpress之魂 © http://wphun.com
 * ---------------------------------- */
/**
 * Displays the edit blog upload space setting form on the Edit Blog screen.
 *
 * @since 3.0.0
 *
 * @param int $id The ID of the blog to display the setting for.
 */
function upload_space_setting( $id ) {
	switch_to_blog( $id );
	$quota = get_option( 'blog_upload_space' );
	restore_current_blog();

	if ( !$quota )
		$quota = '';

	?>
	
		
		
			
			 
		
	
	

upload_space_setting() 源文件