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:
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.
-
WooCommerce7+ million installs
do_action( 'woocommerce_before_available_downloads' )templates/myaccount/downloads.php:31 -
SysBasics Customize My Account for WooCommerce7,000+ installs
do_action( 'woocommerce_before_available_downloads' )templates/myaccount/downloads.php:49 -
Donation Platform for WooCommerce: Fundraising & Donation Management6,000+ installs
do_action( 'woocommerce_before_available_downloads' )includes/wc-templates/myaccount/downloads.php:33 -
ShopEngine Gutenberg WooCommerce Builder Blocks Addon3,000+ installs
do_action( 'woocommerce_before_available_downloads' )blocks/account-downloads/screen.php:25 -
Customize My Account for WooCommerce900+ installs
do_action( 'woocommerce_before_available_downloads' )templates/downloads.php:12 -
ShopPress600+ installs
do_action( 'woocommerce_before_available_downloads' )public/templates/my-account/downloads.php:17 -
StoreBuild400+ installs
do_action( 'woocommerce_before_available_downloads' )public/woocommerce/myaccount/downloads.php:33 -
PeproDev Ultimate Profile Solutions70+ installs
do_action( 'woocommerce_before_available_downloads' )profile/libs/templates/dash-downloads.php:32 -
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.