Created
May 12, 2014 07:26
-
-
Save deckerweb/8c1a5a0398fd4719befb to your computer and use it in GitHub Desktop.
WooCommerce Deutsch (de_DE), für Plugin-Version 3.1.5 oder höher: benutzerdefinierter Text für AGB/ Widerruf bei "Kasse" (Checkout):
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 | |
/** Do NOT include the opening php tag */ | |
add_filter( 'wcde_filter_terms_conditions_string', 'wcde_custom_string_terms_conditions', 10, 1 ); | |
/** | |
* String swap for "Cart Subtotal:" string in WooCommerce. | |
* | |
* NOTE: This snippet relies on active "WooCommerce German (de_DE)" plugin, | |
* version 3.1.5 or higher! | |
* | |
* @author David Decker - DECKERWEB | |
* @link http://deckerweb.de/twitter | |
* @link https://gist.github.com/deckerweb/8c1a5a0398fd4719befb | |
* | |
* @param string $string | |
* | |
* @return string Custom string text. | |
*/ | |
function wcde_custom_string_terms_conditions( $string ) { | |
/** Bail early if no WCDE */ | |
if ( ! function_exists( 'ddw_wcde_custom_strings_via_l10n_global' ) ) { | |
return; | |
} // end if | |
/** Build custom strng */ | |
$string = 'Ich habe folgende Bedingungen gelesen und bestätige diese hiermit: <a href=\"%s\" target=\"_blank\">Liefer- und Zahlungsbedingungen (AGB) inkl. Widerrufsbelehrung</a>'; | |
/** Output string */ | |
return $string; | |
} // end function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment