Better function name

This commit is contained in:
claudiulodro 2017-12-08 07:38:40 -08:00
parent b2cac1dcab
commit fef9d612c7
1 changed files with 2 additions and 2 deletions

View File

@ -361,7 +361,7 @@ function wc_get_default_product_rows_per_page() {
*
* @since 3.3.0
*/
function wc_maybe_reset_product_grid() {
function wc_reset_product_grid_settings() {
$theme_support = get_theme_support( 'woocommerce' );
$theme_support = is_array( $theme_support ) ? $theme_support[0] : false;
@ -377,7 +377,7 @@ function wc_maybe_reset_product_grid() {
delete_option( 'woocommerce_catalog_columns' );
}
}
add_action( 'after_switch_theme', 'wc_maybe_reset_product_grid' );
add_action( 'after_switch_theme', 'wc_reset_product_grid_settings' );
/**
* Get classname for woocommerce loops.