make_db_current_silent
Updates the database tables to a new schema, but without displaying results.
Description
make_db_current_silent( (string) $tables = 'all' );
By default, updates all the tables to use the latest defined schema, but can also be used to update a specific set of tables in wp_get_db_schema(…)
.
Parameters (1)
- 0. $tables — Optional. (string) =>
'all'
- Which set of tables to update. Default is all..
Usage
if ( !function_exists( 'make_db_current_silent' ) ) { require_once ABSPATH . '/wp-admin/includes/upgrade.php'; } // Optional. Which set of tables to update. Default is 'all'. $tables = 'all'; // NOTICE! Understand what this does before running. $result = make_db_current_silent($tables);
Defined (1)
The function is defined in the following location(s).
- /wp-admin/includes/upgrade.php
- function make_db_current_silent( $tables = 'all' ) {
- dbDelta( $tables );
- }