You appear to be a bot. Output may be restricted
Description
Works out the item limit based on rows and columns, or returns default.
Usage
$int = AbstractProductGrid::get_products_limit();
Parameters
Returns
int
Source
File name: woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractProductGrid.php
Lines:
1 to 6 of 6
protected function get_products_limit() { if ( isset( $this->attributes['rows'], $this->attributes['columns'] ) && ! empty( $this->attributes['rows'] ) ) { $this->attributes['limit'] = intval( $this->attributes['columns'] ) * intval( $this->attributes['rows'] ); } return intval( $this->attributes['limit'] ); }