loop_shop_columns

loop_shop_columns

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('loop_shop_columns') is found 1 times:

  • /includes/wc-template-functions.php line 429
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
            update_option( 'woocommerce_catalog_columns', $columns );
        }
     
        if ( has_filter( 'loop_shop_columns' ) ) { // Legacy filter handling.
            $columns = apply_filters( 'loop_shop_columns', $columns );
        }
     
        $columns = absint( $columns );
     
        return max( 1, $columns );
    }