[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Multisite administration functions.
File Size: | 1174 lines (34 kb) |
Included or required: | 2 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
check_upload_size( $file ) X-Ref |
Determines whether uploaded file exceeds space quota. param: array $file An element from the `$_FILES` array for a given file. return: array The `$_FILES` array element with 'error' key set if file exceeds quota. 'error' is empty otherwise. |
wpmu_delete_blog( $blog_id, $drop = false ) X-Ref |
Deletes a site. param: int $blog_id Site ID. param: bool $drop True if site's database tables should be dropped. Default false. |
wpmu_delete_user( $id ) X-Ref |
Deletes a user and all of their posts from the network. This function: - Deletes all posts (of all post types) authored by the user on all sites on the network - Deletes all links owned by the user on all sites on the network - Removes the user from all sites on the network - Deletes the user from the database param: int $id The user ID. return: bool True if the user was deleted, false otherwise. |
upload_is_user_over_quota( $display_message = true ) X-Ref |
Checks whether a site has used its allotted upload space. param: bool $display_message Optional. If set to true and the quota is exceeded, return: bool True if user is over upload space quota, otherwise false. |
display_space_usage() X-Ref |
Displays the amount of disk space used by the current site. Not used in core. |
fix_import_form_size( $size ) X-Ref |
Gets the remaining upload space for this site. param: int $size Current max size in bytes. return: int Max size in bytes. |
upload_space_setting( $id ) X-Ref |
Displays the site upload space quota setting form on the Edit Site Settings screen. param: int $id The ID of the site to display the setting for. |
refresh_user_details( $id ) X-Ref |
Cleans the user cache for a specific user. param: int $id The user ID. return: int|false The ID of the refreshed user or false if the user does not exist. |
format_code_lang( $code = '' ) X-Ref |
Returns the language for a language code. param: string $code Optional. The two-letter language code. Default empty. return: string The language corresponding to $code if it exists. If it does not exist, |
_access_denied_splash() X-Ref |
Displays an access denied message when a user tries to view a site's dashboard they do not have access to. |
check_import_new_users( $permission ) X-Ref |
Checks if the current user has permissions to import new users. param: string $permission A permission to be checked. Currently not used. return: bool True if the user has proper permissions, false if they do not. |
mu_dropdown_languages( $lang_files = array() X-Ref |
Generates and displays a drop-down of available languages. param: string[] $lang_files Optional. An array of the language files. Default empty array. param: string $current Optional. The current language code. Default empty. |
site_admin_notice() X-Ref |
Displays an admin notice to upgrade all sites after a core upgrade. return: void|false Void on success. False if the current user is not a super admin. |
avoid_blog_page_permalink_collision( $data, $postarr ) X-Ref |
Avoids a collision between a site slug and a permalink slug. In a subdirectory installation this will make sure that a site and a post do not use the same subdirectory by checking for a site with the same name as a new post. param: array $data An array of post data. param: array $postarr An array of posts. Not currently used. return: array The new array of post data after checking for collisions. |
choose_primary_blog() X-Ref |
Handles the display of choosing a user's primary site. This displays the user's primary site and allows the user to choose which site is primary. |
can_edit_network( $network_id ) X-Ref |
Determines whether or not this network from this page can be edited. By default editing of network is restricted to the Network Admin for that `$network_id`. This function allows for this to be overridden. param: int $network_id The network ID to check. return: bool True if network can be edited, false otherwise. |
_thickbox_path_admin_subfolder() X-Ref |
Prints thickbox image paths for Network Admin. |
confirm_delete_users( $users ) X-Ref |
param: array $users return: bool |
network_settings_add_js() X-Ref |
Prints JavaScript in the header on the Network Settings screen. |
network_edit_site_nav( $args = array() X-Ref |
Outputs the HTML for a network's "Edit Site" tabular interface. param: array $args { |
get_site_screen_help_tab_args() X-Ref |
Returns the arguments for the help tab on the Edit Site screens. return: array Help tab arguments. |
get_site_screen_help_sidebar_content() X-Ref |
Returns the content for the help sidebar on the Edit Site screens. return: string Help sidebar content. |
Generated : Thu Nov 21 08:20:01 2024 | Cross-referenced by PHPXref |