Add content to thankyou page

0.0/5
<?php
add_action( 'woocommerce_before_thankyou', 'bbloomer_add_content_thankyou' );

function bbloomer_add_content_thankyou() {
   global $wp;
   $order_id  = apply_filters( 'woocommerce_thankyou_order_id', absint( $wp->query_vars['order-received'] ) );
   echo '<div class="order-change-button" >';
   echo '<a class="button" href="https://groomi.wpdistro.cz/my-account/view-order/' . $order_id . '" >' . __( 'Your order can be modified here', 'groomi-domain' )  . '</a>';
   echo '</div>';
} 

Comments and reviews

{{ reviewsTotal }} Review
{{ reviewsTotal }} Reviews
{{ options.labels.newReviewButton }}
{{ userData.canReview.message }}

Description

This snippet was fetched automatically from WPDistro.cz projects.

Author

Tags

This snippet is untagged