Added actions before and after all available downloads
For `my-downloads.php` template file
This commit is contained in:
parent
04234a4968
commit
101b0eb2e0
|
@ -15,6 +15,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
if ( $downloads = WC()->customer->get_downloadable_products() ) : ?>
|
||||
|
||||
<?php do_action( 'woocommerce_before_available_downloads' ); ?>
|
||||
|
||||
<h2><?php echo apply_filters( 'woocommerce_my_account_my_downloads_title', __( 'Available downloads', 'woocommerce' ) ); ?></h2>
|
||||
|
||||
<ul class="digital-downloads">
|
||||
|
@ -34,4 +36,6 @@ if ( $downloads = WC()->customer->get_downloadable_products() ) : ?>
|
|||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
<?php do_action( 'woocommerce_after_available_downloads' ); ?>
|
||||
|
||||
<?php endif; ?>
|
Loading…
Reference in New Issue