wp_get_db_schema
wp_get_db_schema ( $scope = 'all', $blog_id = null )
Parameters:- (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 site ID for which to retrieve SQL. Default is the current site ID.
Returns:- (string) The SQL needed to create the requested tables.
Defined at: - Introduced in WordPress: 3.3.0
- Deprecated in WordPress: —
Description
Retrieve the SQL for creating database tables.