Last active
June 29, 2022 07:42
-
-
Save cartimize/94ec6a65cdfd8c0bbba6b6172287deae to your computer and use it in GitHub Desktop.
Optional label text changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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