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

  1. if ( !function_exists( 'make_db_current_silent' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/upgrade.php'; 
  3.  
  4. // Optional. Which set of tables to update. Default is 'all'. 
  5. $tables = 'all'; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = make_db_current_silent($tables); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/upgrade.php  
  1. function make_db_current_silent( $tables = 'all' ) { 
  2. dbDelta( $tables );