woocommerce_before_available_downloads

woocommerce_before_available_downloads

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_before_available_downloads') is found 2 times:

  • /templates/myaccount/downloads.php line 31
    do_action( 'woocommerce_before_account_downloads', $has_downloads ); ?>
    
    <?php if ( $has_downloads ) : ?>
    
    	<?php do_action( 'woocommerce_before_available_downloads' ); ?>
    
    	<?php do_action( 'woocommerce_available_downloads', $downloads ); ?>
    
    	<?php do_action( 'woocommerce_after_available_downloads' ); ?>
    
    <?php else : ?>
    
  • /templates/myaccount/my-downloads.php line 27
    $downloads = WC()->customer->get_downloadable_products();
    
    if ( $downloads ) : ?>
    
    	<?php do_action( 'woocommerce_before_available_downloads' ); ?>
    
    	<h2><?php echo apply_filters( 'woocommerce_my_account_my_downloads_title', esc_html__( 'Available downloads', 'woocommerce' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></h2>
    
    	<ul class="woocommerce-Downloads digital-downloads">
    		<?php foreach ( $downloads as $download ) : ?>
    			<li>