[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

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

File Size: 1357 lines (43 kb)
Included or required: 1 time
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.

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.

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.


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


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


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


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


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


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


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


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


install_network()   X-Ref
Install Network.


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

return: true|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.

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.

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 : Sat Dec 21 08:20:01 2024 Cross-referenced by PHPXref