WordPress filter hook

barn2_edd_licensing_api_endpoint

Fired by 5 WordPress plugins, running on 18K+ sites between them.

“Filter the EDD Software Licensing API endpoint.”

How to use barn2_edd_licensing_api_endpoint

It's a filter: your callback receives the value and 2 more arguments, 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_endpoint', function( $endpoint, $object, $params ) {
	// Change $endpoint here.
	return $endpoint;
}, 10, 3 );

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.

5 plugins that fire barn2_edd_licensing_api_endpoint

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_endpoint', $endpoint, $this, $params ) dependencies/barn2/barn2-lib/src/Plugin/License/EDD_Licensing.php:142
  2. Document Library Lite icon Document Library Lite4,000+ installs apply_filters( 'barn2_edd_licensing_api_endpoint', $endpoint, $this, $params ) dependencies/barn2/barn2-lib/src/Plugin/License/EDD_Licensing.php:141
  3. Posts Table with Search & Sort icon Posts Table with Search & Sort3,000+ installs apply_filters( 'barn2_edd_licensing_api_endpoint', $endpoint, $this, $params ) dependencies/barn2/barn2-lib/src/Plugin/License/EDD_Licensing.php:142
  4. Easy Post Types and Fields icon Easy Post Types and Fields1,000+ installs apply_filters( 'barn2_edd_licensing_api_endpoint', $endpoint, $this, $params ) dependencies/barn2/barn2-lib/src/Plugin/License/EDD_Licensing.php:141
  5. Wholesale Essentials for WooCommerce icon Wholesale Essentials for WooCommerce10+ installs apply_filters( 'barn2_edd_licensing_api_endpoint', $endpoint, $this, $params ) dependencies/barn2/barn2-lib/src/Plugin/License/EDD_Licensing.php:141

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.