wc_naguro_api_endpoint_url

The WooCommerce Naguro Connect wc naguro api endpoint url hook.

Description

apply_filters( 'wc_naguro_api_endpoint_url', (string) $https_api_naguro_com_api_v1 ); 

Parameters (1)

0. $https_api_naguro_com_api_v1 (string) => 'https://api.naguro.com/api/v1/'
The https api naguro com api v1.

Usage

To run the hook, copy the example below.
  1. $https_api_naguro_com_api_v1 = apply_filters( 'wc_naguro_api_endpoint_url', $https_api_naguro_com_api_v1 ); 
  2.  
  3. if ( !empty( $https_api_naguro_com_api_v1 ) ) { 
  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_api_endpoint_url callback 
  2. function filter_wc_naguro_api_endpoint_url( $https_api_naguro_com_api_v1 ) { 
  3. // make filter magic happen here... 
  4. return $https_api_naguro_com_api_v1
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'wc_naguro_api_endpoint_url', 'filter_wc_naguro_api_endpoint_url', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'wc_naguro_api_endpoint_url', 'filter_wc_naguro_api_endpoint_url', 10, 1 ); 

Defined (2)

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

/includes/wordpress/class-api-handler.php  
  1. $this->api_url = apply_filters( 'wc_naguro_api_endpoint_url', 'https://api.naguro.com/api/v1/' ); 
/includes/woocommerce/core/class-wp-api-handler.php  
  1. $this->api_url = apply_filters( 'wc_naguro_api_endpoint_url', 'http://api.naguro.com/api/v1/' );