ms_upload_constants [ WordPress Function ]
ms_upload_constants ( No parameters )
| Defined at: |
|
Soorgelijke functies: ms_file_constants, ms_cookie_constants, ms_subdomain_constants, wp_ssl_constants, wp_templating_constants
Defines Multisite upload constants.
Source
<?php
function ms_upload_constants( ) {
global $wpdb;
/** @since 3.0.0 */
// Base uploads dir relative to ABSPATH
if ( !defined( 'UPLOADBLOGSDIR' ) )
define( 'UPLOADBLOGSDIR', 'wp-content/blogs.dir' );
/** @since 3.0.0 */
if ( !defined( 'UPLOADS' ) ) {
// Uploads dir relative to ABSPATH
define( 'UPLOADS', UPLOADBLOGSDIR . "/{$wpdb->blogid}/files/" );
if ( 'wp-content/blogs.dir' == UPLOADBLOGSDIR )
define( 'BLOGUPLOADDIR', WP_CONTENT_DIR . "/blogs.dir/{$wpdb->blogid}/files/" );
}
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/ms upload constants « WordPress Codex
1 Description; 2 Usage; 3 Change Log; 4 Source File. Description. Defines Multisite upload constants. Usage. <?php ms_upload_constants(); ?> Change Log ...
codex.wordpress.org - ms-default-constants.php - Detail view - PHP Cross Reference ...
Jun 1, 2011 ... ms_upload_constants() ms_cookie_constants() ms_file_constants() ... ms_upload_constants( ) X-Ref. Defines Multisite upload constants.
xref.yoast.com - multisite - Sharding BLOGUPLOADDIR - WordPress - Stack Exchange
Oct 24, 2011 ... Just hack the ms_upload_constants() in /wp-includes/ms-default-constants.php. You have blogid there and just pay attention to carry over the ...
wordpress.stackexchange.com - tiering media for multisite
function ms_upload_constants( ) { global $wpdb; /* change upload procedure. This procedure developed by Mustafa Uysal, for high scalability*/ ...
premium.wpmudev.org