upload_space_setting

函数


upload_space_setting ( $id )
参数
  • (int)
    $id
    The ID of the site to display the setting for.
    Required:
定义位置
  • wp-admin/includes/ms.php
    , line 294
引入
3.0.0
弃用

Displays the site upload space quota setting form on the Edit Site Settings screen.

function upload_space_setting( $id ) {
	switch_to_blog( $id );
	$quota = get_option( 'blog_upload_space' );
	restore_current_blog();

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

	?>