The tricky "sprintf"
string sprintf ( string $format [, mixed $args [, mixed $... ]] )More info: http://php.net/manual/en/function.sprintf.php
Function Reference/esc url
<?php esc_url( $url, $protocols, $_context ); ?>Example:
$message = sprintf( '<a href="%s" class="button wc-forward">%s</a> %s <a href="%s">%s</a> or <a href="%s">%s</a>', esc_url( wc_get_page_permalink( 'cart' ) ), esc_html__( 'View Sponsorships', 'woocommerce' ), esc_html( $added_text ), esc_url('/children/'), esc_html__( 'Would you like to sponsor more children' ), esc_url( '/checkout/' ), esc_html__( 'proceed to payment?' ));code type:
