wp_get_db_schema Wordpress function


Description:

Retrieve the SQL for creating database tables.


Syntax:


Arguments:

(string) $scope Optional. The tables for which to retrieve SQL. Can be all, global, ms_global, or blog tables. Defaults to all.
(int) $blog_id Optional. The blog ID for which to retrieve SQL. Default is the current blog ID.


Return Type:

(string) The SQL needed to create the requested tables.


Define At:

wp-admin/includes/schema.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_get_db_schema


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×