On this page
is_subdomain_install(): bool
Whether a subdomain configuration is enabled.
Return
bool True if subdomain configuration is enabled, false otherwise.
Source
File: wp-includes/ms-load.php. View all references
function is_subdomain_install() {
if ( defined( 'SUBDOMAIN_INSTALL' ) ) {
return SUBDOMAIN_INSTALL;
}
return ( defined( 'VHOST' ) && 'yes' === VHOST );
}
Related
Used By
| Used By | Description |
|---|---|
| wp_initialize_site() wp-includes/ms-site.php | Runs the initialization routine for a given site. |
| wp_normalize_site_data() wp-includes/ms-site.php | Normalizes data for a site prior to inserting or updating in the database. |
| get_oembed_response_data_for_url() wp-includes/embed.php | Retrieves the oEmbed response data for a given URL. |
| show_blog_form() wp-signup.php | Generates and displays the Sign-up and Create Site forms. |
| network_step2() wp-admin/includes/network.php | Prints step 2 for Network installation process. |
| avoid_blog_page_permalink_collision() wp-admin/includes/ms.php | Avoids a collision between a site slug and a permalink slug. |
| WP_MS_Sites_List_Table::prepare_items() wp-admin/includes/class-wp-ms-sites-list-table.php | Prepares the list of sites for display. |
| install_blog() wp-includes/ms-deprecated.php | Install an empty blog. |
| wpmu_validate_blog_signup() wp-includes/ms-functions.php | Processes new site registrations. |
| wpmu_signup_blog_notification() wp-includes/ms-functions.php | Sends a confirmation request email to a user when they sign up for a new site. The new site will not become active until the confirmation link is clicked. |
| get_blogaddress_by_domain() wp-includes/ms-deprecated.php | Get a full blog URL, given a domain and a path. |
| get_blogaddress_by_name() wp-includes/ms-blogs.php | Get a full blog URL, given a blog name. |
| get_id_from_blogname() wp-includes/ms-blogs.php | Retrieves a site’s ID given its (subdomain or directory) slug. |
| get_blog_details() wp-includes/ms-blogs.php | Retrieve the details for a blog from the blogs table and blog options. |
| ms_cookie_constants() wp-includes/ms-default-constants.php | Defines Multisite cookie constants. |
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/is_subdomain_install