[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-admin/includes/ -> schema.php (summary)

WordPress Administration Scheme API Here we keep the DB structure and option values.

File Size: 1350 lines (42 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 15 functions

  wp_get_db_schema()
  populate_options()
  populate_roles()
  populate_roles_160()
  populate_roles_210()
  populate_roles_230()
  populate_roles_250()
  populate_roles_260()
  populate_roles_270()
  populate_roles_280()
  populate_roles_300()
  install_network()
  populate_network()
  populate_network_meta()
  populate_site_meta()

Functions
Functions that are not part of a class:

wp_get_db_schema( $scope = 'all', $blog_id = null )   X-Ref
Retrieve the SQL for creating database tables.

since: 3.3.0
return: string The SQL needed to create the requested tables.
param: string $scope   Optional. The tables for which to retrieve SQL. Can be all, global, ms_global, or blog tables. Defaults to all.
param: int    $blog_id Optional. The site ID for which to retrieve SQL. Default is the current site ID.

populate_options( array $options = array()   X-Ref
Create WordPress options and set the default values.

since: 1.5.0
since: 5.1.0 The $options parameter has been added.
param: array $options Optional. Custom option $key => $value pairs to use. Default empty array.

populate_roles()   X-Ref
Execute WordPress role creation for the various WordPress versions.

since: 2.0.0

populate_roles_160()   X-Ref
Create the roles for WordPress 2.0

since: 2.0.0

populate_roles_210()   X-Ref
Create and modify WordPress roles for WordPress 2.1.

since: 2.1.0

populate_roles_230()   X-Ref
Create and modify WordPress roles for WordPress 2.3.

since: 2.3.0

populate_roles_250()   X-Ref
Create and modify WordPress roles for WordPress 2.5.

since: 2.5.0

populate_roles_260()   X-Ref
Create and modify WordPress roles for WordPress 2.6.

since: 2.6.0

populate_roles_270()   X-Ref
Create and modify WordPress roles for WordPress 2.7.

since: 2.7.0

populate_roles_280()   X-Ref
Create and modify WordPress roles for WordPress 2.8.

since: 2.8.0

populate_roles_300()   X-Ref
Create and modify WordPress roles for WordPress 3.0.

since: 3.0.0

install_network()   X-Ref
Install Network.

since: 3.0.0

populate_network( $network_id = 1, $domain = '', $email = '', $site_name = '', $path = '/', $subdomain_install = false )   X-Ref
Populate network settings.

since: 3.0.0
return: bool|WP_Error True on success, or WP_Error on warning (with the installation otherwise successful,
param: int    $network_id        ID of network to populate.
param: string $domain            The domain name for the network. Example: "example.com".
param: string $email             Email address for the network administrator.
param: string $site_name         The name of the network.
param: string $path              Optional. The path to append to the network's domain name. Default '/'.
param: bool   $subdomain_install Optional. Whether the network is a subdomain installation or a subdirectory installation.

populate_network_meta( $network_id, array $meta = array()   X-Ref
Creates WordPress network meta and sets the default values.

since: 5.1.0
param: int   $network_id Network ID to populate meta for.
param: array $meta       Optional. Custom meta $key => $value pairs to use. Default empty array.

populate_site_meta( $site_id, array $meta = array()   X-Ref
Creates WordPress site meta and sets the default values.

since: 5.1.0
param: int   $site_id Site ID to populate meta for.
param: array $meta    Optional. Custom meta $key => $value pairs to use. Default empty array.



Generated: Thu Apr 25 01:00:03 2024 Cross-referenced by PHPXref 0.7.1