wpsc_add_tables_to_repair

Adds custom WP eCommerce tables to `tables_to_repair` array.

Description

(array) wpsc_add_tables_to_repair( (array) $tables ); 

WordPress provides a link, admin_url( maint/repair.php' )', that allows users to repair database tables. We find that this becomes necessary often times when visitor/visitor meta tables become corrupt. Symptoms of a corrupt visitor/meta table include disappearing carts, refreshing checkout pages, etc.

In a future version, we will likely have a System page that would include a link to the repair.php page.

Returns (array)

$tables Core + WP eCommerce tables

Parameters (1)

0. $tables (array)
The tables.

Usage

  1. if ( !function_exists( 'wpsc_add_tables_to_repair' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'wp-ecommerce/wpsc-core/wpsc-functions.php'; 
  3.  
  4. // The tables. 
  5. $tables = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wpsc_add_tables_to_repair($tables); 
  9.  

Defined (1)

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

/wpsc-core/wpsc-functions.php