Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




ms_upload_constants [ WordPress Function ]

ms_upload_constants ( No parameters )
Defined at:



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

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics