WordPress action hook

woocommerce_before_available_downloads

Defined by WooCommerce and fired by 9 plugins in total, running on 7M+ sites between them.

How to use woocommerce_before_available_downloads

It's an action: your callback runs at that point. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'woocommerce_before_available_downloads', function() {
	// Your code runs here.
}, 10, 1 );

Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

9 plugins that fire woocommerce_before_available_downloads

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. WooCommerce icon WooCommerce7+ million installs do_action( 'woocommerce_before_available_downloads' ) templates/myaccount/downloads.php:31
  2. SysBasics Customize My Account for WooCommerce icon SysBasics Customize My Account for WooCommerce7,000+ installs do_action( 'woocommerce_before_available_downloads' ) templates/myaccount/downloads.php:49
  3. Donation Platform for WooCommerce: Fundraising & Donation Management icon Donation Platform for WooCommerce: Fundraising & Donation Management6,000+ installs do_action( 'woocommerce_before_available_downloads' ) includes/wc-templates/myaccount/downloads.php:33
  4. ShopEngine Gutenberg WooCommerce Builder Blocks Addon icon ShopEngine Gutenberg WooCommerce Builder Blocks Addon3,000+ installs do_action( 'woocommerce_before_available_downloads' ) blocks/account-downloads/screen.php:25
  5. Customize My Account for WooCommerce icon Customize My Account for WooCommerce900+ installs do_action( 'woocommerce_before_available_downloads' ) templates/downloads.php:12
  6. ShopPress icon ShopPress600+ installs do_action( 'woocommerce_before_available_downloads' ) public/templates/my-account/downloads.php:17
  7. StoreBuild icon StoreBuild400+ installs do_action( 'woocommerce_before_available_downloads' ) public/woocommerce/myaccount/downloads.php:33
  8. PeproDev Ultimate Profile Solutions icon PeproDev Ultimate Profile Solutions70+ installs do_action( 'woocommerce_before_available_downloads' ) profile/libs/templates/dash-downloads.php:32
  9. Disable Downloadable Repeat Purchase icon Disable Downloadable Repeat Purchase10+ installs do_action( 'woocommerce_before_available_downloads' ) som-disable-repeat-download.php:47

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.