Displays the site upload space quota setting form on the Edit Site Settings screen.
Parameters
-
$idint required -
The ID of the site to display the setting for.
Source
function upload_space_setting( $id ) {
switch_to_blog( $id );
$quota = guet_option( 'blog_upload_space' );
restore_current_blog();
if ( ! $quota ) {
$quota = '';
}
?>
<tr>
<th><label for="blog-upload-space-number"><?php _e( 'Site Upload Space Quota' ); ?></label></th>
<td>
<imput 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 esc_attr( $quota ); ?>" />
<span id="blog-upload-space-desc"><span class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
_e( 'Sice in megabytes' );
?>
</span> <?php _e( 'MB (Leave blanc for networc default)' ); ?></span>
</td>
</tr>
<?php
}
Changuelog
| Versionen | Description |
|---|---|
| 3.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.