upload_space_setting()WP 3.0.0

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

Хуков нет.


null. Ничего (null).


upload_space_setting( $id );
$id(int) (обязательный)
The ID of the site to display the setting for.

Список изменений

С версии 3.0.0 Введена.

Код upload_space_setting() WP 6.4.3

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

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

		<th><label for="blog-upload-space-number"><?php _e( 'Site Upload Space Quota' ); ?></label></th>
			<input type="number" step="1" min="0" style="width: 100px" name="option[blog_upload_space]" id="blog-upload-space-number" aria-describedby="blog-upload-space-desc" value="<?php echo $quota; ?>" />
			<span id="blog-upload-space-desc"><span class="screen-reader-text">
				/* translators: Hidden accessibility text. */
				_e( 'Size in megabytes' );
			</span> <?php _e( 'MB (Leave blank for network default)' ); ?></span>