Merge pull request #23538 from Mahjouba91/issue/23537

Add a woocommerce_before_thankyou hook, Fix Issue/23537
This commit is contained in:
Gerhard Potgieter 2019-05-10 11:45:24 +02:00 committed by GitHub
commit 292650ee63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,9 @@ if ( ! defined( 'ABSPATH' ) ) {
<div class="woocommerce-order"> <div class="woocommerce-order">
<?php if ( $order ) : ?> <?php if ( $order ) :
do_action( 'woocommerce_before_thankyou', $order->get_id() ); ?>
<?php if ( $order->has_status( 'failed' ) ) : ?> <?php if ( $order->has_status( 'failed' ) ) : ?>