Fix wcff_before_rendering_cart_data filter
-
Hi. I need to be able to use the wcff_before_rendering_cart_data filter to alter my color codes to show in the cart as custom colour names instead. If the wcff_before_rendering_cart_data filter worked then I’d be able to do this in my custom plugin or functions.php code, but the arguments are in the wrong order, so I am unable to use it at all.
For the next update, can you please change these lines in wcff-cart-data.php from this:
/* Let other plugins override this value - if they wanted */ if (has_filter("wcff_before_rendering_cart_data")) { $cif_data = apply_filters("wcff_before_rendering_cart_data", $_field, $cif_data); }
to this:
/* Let other plugins override this value - if they wanted */ if (has_filter("wcff_before_rendering_cart_data")) { $cif_data = apply_filters("wcff_before_rendering_cart_data", $cif_data, $_field); }
So that myself and other developers can use this filter as needed.
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Fix wcff_before_rendering_cart_data filter’ is closed to new replies.