Challenge - 5 Problems
Multisite Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
π§ Conceptual
intermediate1:30remaining
What is the primary purpose of a WordPress Multisite Network?
Choose the best description of what a WordPress Multisite Network does.
Attempts:
2 left
π‘ Hint
Think about how many sites you can control with one WordPress setup.
β Incorrect
A WordPress Multisite Network lets you run many sites using one WordPress installation. This makes managing multiple sites easier.
β component_behavior
intermediate1:30remaining
What happens when you enable Multisite in WordPress?
After enabling Multisite, which of the following is true about the WordPress admin dashboard?
Attempts:
2 left
π‘ Hint
Think about how you would manage multiple sites from one place.
β Incorrect
Enabling Multisite adds a Network Admin dashboard where you can manage all sites in the network.
π Syntax
advanced2:00remaining
Which code snippet correctly enables Multisite in wp-config.php?
Select the correct line to add to wp-config.php to enable Multisite.
Attempts:
2 left
π‘ Hint
Look for the exact constant WordPress expects to enable Multisite.
β Incorrect
The correct constant to enable Multisite is WP_ALLOW_MULTISITE. Other options are invalid and cause errors.
β state_output
advanced2:00remaining
What is the effect of the following code in a Multisite environment?
Given this code in a plugin activated network-wide, what will
get_bloginfo('name') return on site ID 3?Wordpress
<?php switch_to_blog(3); $name = get_bloginfo('name'); restore_current_blog(); echo $name; ?>
Attempts:
2 left
π‘ Hint
Think about what switch_to_blog does before calling get_bloginfo.
β Incorrect
switch_to_blog(3) changes context to site ID 3, so get_bloginfo('name') returns that site's title. Then restore_current_blog() returns to the original site.
π§ Debug
expert2:30remaining
Why does this Multisite plugin activation code fail on some sites?
This code is in a plugin activated network-wide. It tries to add a custom option to each site but only works on the main site. Why?
Attempts:
2 left
π‘ Hint
Consider when and where add_option runs in a network-wide plugin.
β Incorrect
The network_admin_menu hook runs only once in the network admin, so add_option runs only for the main site. To add options on each site, you must loop through sites or use site-specific hooks.