mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-28 11:22:21 +08:00
8 lines
340 B
Text
8 lines
340 B
Text
add_filter( 'sgo_db_optimization_exclude', 'sgo_db_optimization_exclude_table' );
|
|
function sgo_db_optimization_exclude_table( $excluded_tables ) {
|
|
// Add tables that you need to exclude without the wpdb prefix.
|
|
$excluded_tables[] = 'woocommerce_sessions';
|
|
$excluded_tables[] = 'woocommerce_log';
|
|
|
|
return $excluded_tables;
|
|
}
|