Added actions before and after all available downloads

For `my-downloads.php` template file
This commit is contained in:
Bryce 2014-08-21 20:12:02 +07:00
parent 04234a4968
commit 101b0eb2e0
1 changed files with 4 additions and 0 deletions

View File

@ -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; ?>