0
0
Wordpressframework~10 mins

Multisite network basics in Wordpress - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to enable multisite in WordPress by adding the correct line to wp-config.php.

Wordpress
<?php
// Enable multisite
define('[1]', true);
Drag options to blanks, or click blank then click option'
AALLOW_MULTISITE
BMULTISITE_ENABLED
CENABLE_NETWORK
DWP_ALLOW_MULTISITE
Attempts:
3 left
💡 Hint
Common Mistakes
Using a wrong constant name like MULTISITE_ENABLED.
Forgetting to set the value to true.
Placing the line in the wrong file.
2fill in blank
medium

Complete the code to add the multisite network setup menu in WordPress admin after enabling multisite.

Wordpress
add_action('admin_menu', '[1]');
Drag options to blanks, or click blank then click option'
Anetwork_setup_menu
Bnetwork_admin_menu
Cwp_network_menu
Dsetup_network_menu
Attempts:
3 left
💡 Hint
Common Mistakes
Using a function name that does not exist.
Confusing the hook name with the function name.
3fill in blank
hard

Fix the error in the multisite setup code by completing the constant that defines the network domain in wp-config.php.

Wordpress
define('[1]', 'example.com');
Drag options to blanks, or click blank then click option'
ANETWORK_DOMAIN
BSITE_DOMAIN
CDOMAIN_CURRENT_SITE
DCURRENT_SITE_DOMAIN
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect constant names like NETWORK_DOMAIN.
Misspelling the constant.
4fill in blank
hard

Fill both blanks to complete the multisite network setup code in wp-config.php.

Wordpress
define('[1]', 1);
define('[2]', '/');
Drag options to blanks, or click blank then click option'
ASITE_ID_CURRENT_SITE
BNETWORK_ID
CPATH_CURRENT_SITE
DSITE_PATH
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up SITE_ID_CURRENT_SITE and NETWORK_ID.
Using incorrect path constants.
5fill in blank
hard

Fill all three blanks to complete the multisite network setup code in wp-config.php.

Wordpress
define('[1]', 'example.com');
define('[2]', 1);
define('[3]', '/');
Drag options to blanks, or click blank then click option'
ADOMAIN_CURRENT_SITE
BSITE_ID_CURRENT_SITE
CPATH_CURRENT_SITE
DNETWORK_SITE_DOMAIN
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong constant names or mixing their order.
Setting incorrect values.