WordPress filter hook

barn2_edd_licensing_api_request_args

Fired by 6 WordPress plugins, running on 20K+ sites between them.

How to use barn2_edd_licensing_api_request_args

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'barn2_edd_licensing_api_request_args', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

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

6 plugins that fire barn2_edd_licensing_api_request_args

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

  1. Product Tabs for WooCommerce icon Product Tabs for WooCommerce10,000+ installs apply_filters( 'barn2_edd_licensing_api_request_args', ['timeout' => self::API_TIMEOUT, 'body' => $params] ) dependencies/barn2/barn2-lib/src/Plugin/License/EDD_Licensing.php:144
  2. Document Library Lite icon Document Library Lite4,000+ installs apply_filters( 'barn2_edd_licensing_api_request_args', ['timeout' => self::API_TIMEOUT, 'body' => $params] ) dependencies/barn2/barn2-lib/src/Plugin/License/EDD_Licensing.php:143
  3. Posts Table with Search & Sort icon Posts Table with Search & Sort3,000+ installs apply_filters( 'barn2_edd_licensing_api_request_args', ['timeout' => self::API_TIMEOUT, 'body' => $params] ) dependencies/barn2/barn2-lib/src/Plugin/License/EDD_Licensing.php:144
  4. Better Recent Comments icon Better Recent Comments2,000+ installs apply_filters( 'barn2_edd_licensing_api_request_args', ['timeout' => self::API_TIMEOUT, 'body' => $params] ) dependencies/barn2/barn2-lib/src/Plugin/License/EDD_Licensing.php:124
  5. Easy Post Types and Fields icon Easy Post Types and Fields1,000+ installs apply_filters( 'barn2_edd_licensing_api_request_args', ['timeout' => self::API_TIMEOUT, 'body' => $params] ) dependencies/barn2/barn2-lib/src/Plugin/License/EDD_Licensing.php:143
  6. Wholesale Essentials for WooCommerce icon Wholesale Essentials for WooCommerce10+ installs apply_filters( 'barn2_edd_licensing_api_request_args', ['timeout' => self::API_TIMEOUT, 'body' => $params] ) dependencies/barn2/barn2-lib/src/Plugin/License/EDD_Licensing.php:143

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.