woocommerce_api_pagination_headers

The WooCommerce woocommerce api pagination headers hook.

Description

do_action( 'woocommerce_api_pagination_headers', (unknown) $instance, (unknown) $query ); 

Parameters (2)

0. $instance (unknown)
The instance.
1. $query (unknown)
The query.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'woocommerce_api_pagination_headers', $instance, $query ); 
The following example is for adding a hook callback.
  1. // define the woocommerce_api_pagination_headers callback 
  2. function action_woocommerce_api_pagination_headers( $instance, $query ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'woocommerce_api_pagination_headers', 'action_woocommerce_api_pagination_headers', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'woocommerce_api_pagination_headers', 'action_woocommerce_api_pagination_headers', 10, 2 ); 

Defined (3)

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

/includes/api/legacy/v3/class-wc-api-server.php  
  1. do_action( 'woocommerce_api_pagination_headers', $this, $query ); 
/includes/api/legacy/v2/class-wc-api-server.php  
  1. do_action( 'woocommerce_api_pagination_headers', $this, $query ); 
/includes/api/legacy/v1/class-wc-api-server.php  
  1. do_action( 'woocommerce_api_pagination_headers', $this, $query );