Title: wp-admin/includes/schema.php | Developer.WordPress.org

---

# File: wp-admin/includes/schema.php

 * hook[before_populate_network](https://developer.wordpress.org/reference/hooks/before_populate_network/)
 * Fires before a network is populated.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/before_populate_network/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/before_populate_network/#uses)
   | Source: [wp-admin/includes/schema.php:1022](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L1022-L1022)
 * hook[after_upgrade_to_multisite](https://developer.wordpress.org/reference/hooks/after_upgrade_to_multisite/)
 * Fires after a network is created when converting a single site to multisite.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/after_upgrade_to_multisite/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/after_upgrade_to_multisite/#uses)
   | Source: [wp-admin/includes/schema.php:1155](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L1155-L1155)
 * hook[after_populate_network](https://developer.wordpress.org/reference/hooks/after_populate_network/)
 * Fires after a network is fully populated.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/after_populate_network/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/after_populate_network/#uses)
   | Source: [wp-admin/includes/schema.php:1215](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L1215-L1215)
 * hook[populate_site_meta](https://developer.wordpress.org/reference/hooks/populate_site_meta/)
 * Filters meta for a site on creation.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/populate_site_meta/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/populate_site_meta/#uses)
   | Source: [wp-admin/includes/schema.php:1406](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L1406-L1406)
 * function[populate_network_meta()](https://developer.wordpress.org/reference/functions/populate_network_meta/)
 * Creates WordPress network meta and sets the default values.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/populate_network_meta/#used-by)
   | Uses [17 functions](https://developer.wordpress.org/reference/functions/populate_network_meta/#uses)
   | Source: [wp-admin/includes/schema.php:1231](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L1231-L1373)
 * function[populate_site_meta()](https://developer.wordpress.org/reference/functions/populate_site_meta/)
 * Creates WordPress site meta and sets the default values.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/populate_site_meta/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/populate_site_meta/#uses)
   | Source: [wp-admin/includes/schema.php:1385](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L1385-L1423)
 * function[populate_network()](https://developer.wordpress.org/reference/functions/populate_network/)
 * Populate network settings.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/populate_network/#used-by)
   | Uses [19 functions](https://developer.wordpress.org/reference/functions/populate_network/#uses)
   | Source: [wp-admin/includes/schema.php:1005](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L1005-L1218)
 * function[populate_roles()](https://developer.wordpress.org/reference/functions/populate_roles/)
 * Execute WordPress role creation for the various WordPress versions.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/populate_roles/#used-by)
   | Uses [10 functions](https://developer.wordpress.org/reference/functions/populate_roles/#uses)
   | Source: [wp-admin/includes/schema.php:719](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L719-L743)
 * hook[populate_network_meta](https://developer.wordpress.org/reference/hooks/populate_network_meta/)
 * Filters meta for a network on creation.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/populate_network_meta/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/populate_network_meta/#uses)
   | Source: [wp-admin/includes/schema.php:1360](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L1360-L1360)
 * function[populate_roles_160()](https://developer.wordpress.org/reference/functions/populate_roles_160/)
 * Create the roles for WordPress 2.0
 * Used by [1 function](https://developer.wordpress.org/reference/functions/populate_roles_160/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/populate_roles_160/#uses)
   | Source: [wp-admin/includes/schema.php:750](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L750-L835)
 * function[populate_roles_210()](https://developer.wordpress.org/reference/functions/populate_roles_210/)
 * Create and modify WordPress roles for WordPress 2.1.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/populate_roles_210/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/populate_roles_210/#uses)
   | Source: [wp-admin/includes/schema.php:842](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L842-L883)
 * function[populate_roles_230()](https://developer.wordpress.org/reference/functions/populate_roles_230/)
 * Create and modify WordPress roles for WordPress 2.3.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/populate_roles_230/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/populate_roles_230/#uses)
   | Source: [wp-admin/includes/schema.php:890](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L890-L896)
 * function[populate_roles_250()](https://developer.wordpress.org/reference/functions/populate_roles_250/)
 * Create and modify WordPress roles for WordPress 2.5.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/populate_roles_250/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/populate_roles_250/#uses)
   | Source: [wp-admin/includes/schema.php:903](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L903-L909)
 * function[populate_roles_260()](https://developer.wordpress.org/reference/functions/populate_roles_260/)
 * Create and modify WordPress roles for WordPress 2.6.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/populate_roles_260/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/populate_roles_260/#uses)
   | Source: [wp-admin/includes/schema.php:916](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L916-L923)
 * function[populate_roles_270()](https://developer.wordpress.org/reference/functions/populate_roles_270/)
 * Create and modify WordPress roles for WordPress 2.7.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/populate_roles_270/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/populate_roles_270/#uses)
   | Source: [wp-admin/includes/schema.php:930](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L930-L937)
 * function[populate_roles_280()](https://developer.wordpress.org/reference/functions/populate_roles_280/)
 * Create and modify WordPress roles for WordPress 2.8.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/populate_roles_280/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/populate_roles_280/#uses)
   | Source: [wp-admin/includes/schema.php:944](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L944-L950)
 * function[populate_roles_300()](https://developer.wordpress.org/reference/functions/populate_roles_300/)
 * Create and modify WordPress roles for WordPress 3.0.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/populate_roles_300/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/populate_roles_300/#uses)
   | Source: [wp-admin/includes/schema.php:957](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L957-L969)
 * function[install_network()](https://developer.wordpress.org/reference/functions/install_network/)
 * Install Network.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/install_network/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/install_network/#uses)
   | Source: [wp-admin/includes/schema.php:977](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L977-L983)
 * function[wp_get_db_schema()](https://developer.wordpress.org/reference/functions/wp_get_db_schema/)
 * Retrieve the SQL for creating database tables.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/wp_get_db_schema/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/wp_get_db_schema/#uses)
   | Source: [wp-admin/includes/schema.php:36](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L36-L345)
 * function[populate_options()](https://developer.wordpress.org/reference/functions/populate_options/)
 * Create WordPress options and set the default values.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/populate_options/#used-by)
   | Uses [16 functions](https://developer.wordpress.org/reference/functions/populate_options/#uses)
   | Source: [wp-admin/includes/schema.php:362](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L362-L712)
 * hook[populate_options](https://developer.wordpress.org/reference/hooks/populate_options/)
 * Fires before creating WordPress options and populating their default values.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/populate_options/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/populate_options/#uses)
   | Source: [wp-admin/includes/schema.php:371](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L371-L371)