wc_get_terms_and_conditions_checkbox_text()
Get the terms and conditions checkbox text, if set.
Хуки из функции
Возвращает
Строку
.
Использование
wc_get_terms_and_conditions_checkbox_text();
Список изменений
С версии 3.4.0 | Введена. |
Код wc_get_terms_and_conditions_checkbox_text() wc get terms and conditions checkbox text WC 8.7.0
function wc_get_terms_and_conditions_checkbox_text() { /* translators: %s terms and conditions page name and link */ return trim( apply_filters( 'woocommerce_get_terms_and_conditions_checkbox_text', get_option( 'woocommerce_checkout_terms_and_conditions_checkbox_text', sprintf( __( 'I have read and agree to the website %s', 'woocommerce' ), '[terms]' ) ) ) ); }