wc_naguro_assets_api_endpoint_url

The WooCommerce Naguro Connect wc naguro assets api endpoint url hook.

Description

apply_filters( 'wc_naguro_assets_api_endpoint_url', (string) $http_api_naguro_com ); 

Parameters (1)

0. $http_api_naguro_com (string) => 'http://api.naguro.com/'
The http api naguro com.

Usage

To run the hook, copy the example below.
  1. $http_api_naguro_com = apply_filters( 'wc_naguro_assets_api_endpoint_url', $http_api_naguro_com ); 
  2.  
  3. if ( !empty( $http_api_naguro_com ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the wc_naguro_assets_api_endpoint_url callback 
  2. function filter_wc_naguro_assets_api_endpoint_url( $http_api_naguro_com ) { 
  3. // make filter magic happen here... 
  4. return $http_api_naguro_com
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'wc_naguro_assets_api_endpoint_url', 'filter_wc_naguro_assets_api_endpoint_url', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'wc_naguro_assets_api_endpoint_url', 'filter_wc_naguro_assets_api_endpoint_url', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/includes/woocommerce/core/class-wc-naguro-downloader.php  
  1. $assets_api_url = apply_filters( 'wc_naguro_assets_api_endpoint_url', 'http://api.naguro.com/' );