gdpc_compare_box_strings

gdpc_compare_box_strings

File name: codecorecompare.php

Parameters:
  • $string: list of string for the compare box buttons
  • $controls: name of controls type selected: normal or compact
  • $product_type: product type for the compare box

Currently, 4 strings are needed for $strings. Array is associated one, and you need to return same set of keys with values.

Example:

[php]add_filter(‘gdpc_compare_box_strings’, ‘my_compare_box_strings’);
function my_compare_box_strings($strings) {
$strings = array(
‘open’ => __("open box", "gd-products-center"),
‘close’ => __("close box", "gd-products-center"),
‘remove’ => __("empty it", "gd-products-center"),
‘compare’ => __("compare them", "gd-products-center")
);

return $strings;
}
[/php]

Comments

Leave a Reply