@@ -194,26 +194,25 @@ public function render_button() {
194
194
*/
195
195
public function render_terms_notice () {
196
196
197
- /** This filter is documented by WordPress in templates/checkout/terms.php */
197
+ /** This filter is documented by WooCommerce in templates/checkout/terms.php */
198
198
if ( apply_filters ( 'woocommerce_checkout_show_terms ' , true ) && function_exists ( 'wc_terms_and_conditions_checkbox_enabled ' ) && wc_terms_and_conditions_checkbox_enabled () ) {
199
199
200
200
$ default_text = sprintf (
201
- /** translators: Placeholders: %s - [terms] placeholder, will be replaced by terms link */
202
- __ ( 'By submitting your payment, you agree to our %s. ' , 'woocommerce-plugin-framework ' ),
203
- '[terms] '
201
+ /** translators: Placeholders: %1$s - opening HTML link tag pointing to the terms & conditions page, %2$s closing HTML link tag */
202
+ __ ( 'By submitting your payment, you agree to our %1$sterms and conditions%2$s. ' , 'woocommerce-plugin-framework ' ),
203
+ '<a href=" ' . esc_url ( get_permalink ( wc_terms_and_conditions_page_id () ) ) . '" class="sv-wc-apple-pay-terms-and-conditions-link" target="_blank"> ' ,
204
+ '</a> '
204
205
);
205
206
206
207
/**
207
- * Allows to filter the notice text, use the [ terms] shortcode to insert a link to the terms & conditions page .
208
+ * Allows to filter the text for the terms & conditions notice .
208
209
*
209
210
* @since 5.5.4
210
211
*
211
212
* @params string $default_text default notice text
212
213
*/
213
214
$ text = apply_filters ( 'sv_wc_apple_pay_terms_notice_text ' , $ default_text );
214
215
215
- $ text = wc_replace_policy_page_link_placeholders ( $ text );
216
-
217
216
?>
218
217
<div class="sv-wc-apple-pay-terms woocommerce-terms-and-conditions-wrapper">
219
218
<p><small><?php echo wp_kses_post ( $ text ); ?> </small></p>
0 commit comments