Skip to content
Docs
Get RestroPress

Filter

rpress_checkout_cart_columns

Updated
On this page

Filters the number of columns in the checkout cart table.

Runs at the end of rpress_checkout_cart_columns(). The base is 3 plus one for every callback attached to rpress_checkout_table_header_first and rpress_checkout_table_header_last. Use it when you add table columns by other means.

Parameters#

ParameterTypeDescription
$columns_countintNumber of columns.

Return value#

int. The column count.

Example#

function my_checkout_cart_columns( $columns_count ) {
	return $columns_count + 1;
}
add_filter( 'rpress_checkout_cart_columns', 'my_checkout_cart_columns', 10, 1 );

Source#

Applied in:

  • includes/cart/template.php (line 258), in rpress_checkout_cart_columns()
Was this page helpful?