ims_cart_image_list_column

Description

The “ims_cart_image_list_column” filter is used to add the value to a custom in the image (order) list in the shopping page.

A plugin (or theme) can modify the output with the code:

<?php add_filter( 'ims_cart_image_list_column', 'filter_function_name'); ?>

The hook is located in the image-store/_inc/cart.php file.

Example

// Apply filter
function add_ims_before_order_form( $output, $image_id, $item, $color, $enc, $row, $title, $size ) {
return $output . '<span class="ims-custom">' . __( 'My custom column' ). '</span>'; 
}
add_filter('ims_cart_image_list_column', 'add_ims_cart_image_list_column');

Note: $output is a HTML string, $image_id is an integer, $color is a string, $enc is an sting (encoded $image_id), $row is an integer, $title is a string, $size is an string.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *