woocommerce_install_get_tables filter-hookWC 3.4.0

Filter the list of known WooCommerce tables.

If WooCommerce plugins need to add new tables, they can inject them here.

Usage

add_filter( 'woocommerce_install_get_tables', 'wp_kama_woocommerce_install_get_tables_filter' );

/**
 * Function for `woocommerce_install_get_tables` filter-hook.
 * 
 * @param array $tables An array of WooCommerce-specific database table names.
 *
 * @return array
 */
function wp_kama_woocommerce_install_get_tables_filter( $tables ){

	// filter...
	return $tables;
}
$tables(array)
An array of WooCommerce-specific database table names.

Changelog

Since 3.4.0 Introduced.

Where the hook is called

WC_Install::get_tables()
woocommerce_install_get_tables
woocommerce/includes/class-wc-install.php 1808
$tables = apply_filters( 'woocommerce_install_get_tables', $tables );

Where the hook is used in WooCommerce

Usage not found.