Skip to content

Instantly share code, notes, and snippets.

@cartimize
Last active June 29, 2022 07:42
Show Gist options
  • Save cartimize/94ec6a65cdfd8c0bbba6b6172287deae to your computer and use it in GitHub Desktop.
Save cartimize/94ec6a65cdfd8c0bbba6b6172287deae to your computer and use it in GitHub Desktop.
Optional label text changes
<?php
add_filter('cartimize_optional_collapse_label_text', 'cartimize_custom_cartimize_optional_collapse_label_text', 10, 2);
function cartimize_custom_cartimize_optional_collapse_label_text($optional_label, $args) {
$optional_label = esc_html($args['label']);
$optional_label .= ' '.esc_html__('Add', 'linear-checkout-for-woo-by-cartimize');
return $optional_label;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment