Namespace \PlusBusinessSoftware\WooCommerce
Bestand: GroupedProducts.php
/**
* Allow filtering for more headers
*
* @filter plus_grouped_products_default_headers
* @param array $default_headers The default headers to add to grouped products
* @param array $columns The existing columns for grouped product
* @return array The default headers to add to grouped products
*/
$default_headers = apply_filters('plus_grouped_products_default_headers', $default_headers, $columns );
/**
* Allow filtering for more css classes.
*
* @filter plus_grouped_product_list_headers_class
* @param string CSS classes to add to the column headers.
* @param string $column_id An identifier string for the column.
* @return string CSS classes to add to the column headers.
*/
$extra_column_class = apply_filters('plus_grouped_product_list_headers_class', '', $column_id );
/**
* Allow filtering for more data attributes.
*
* @filter plus_grouped_product_list_headers_data_attr
* @param array Extra data attributes to add to the column headers.
* @param string $column_id An identifier string for the column.
* @return array Extra data attributes to add to the column headers.
*/
$data_attributes = apply_filters('plus_grouped_product_list_headers_data_attr', [], $column_id );
/**
* Allow filtering for column header text.
*
* @filter woocommerce_grouped_product_list_header_[$column_id]
* @param mixed $value The value to show in the column header
* @return mixed The value to show in the column header
*/
$column_text = apply_filters( 'woocommerce_grouped_product_list_header_' . $column_id, $value );
/**
* Allow overriding the attribute name.
*
* @filter plus_override_attribute_name
* @param string The attribute name.
* @param string $column_id The identifier string for the column.
* @param WC_Product $product A WC_Product instance.
* @return string The attribute name.
*/
$attribute_name = apply_filters('plus_override_attribute_name', 'pa_' . $column_id, $column_id, $product );
/**
* After/before which column do we add the extra columns.
*
* @filter plus_set_extra_columns_location
* @param array An array defining where we want to insert our extra columns.
* @param array $columns An array of existing columns.
* @param WC_Product $product A WC_Product instance.
* @return array An array defining where we want to insert our extra columns.
*/
$extra_columns_position = apply_filters('plus_set_extra_columns_location', [ 'column' => 'price', 'location' =>'before' ], $columns, $product);