woocommerce_pos_language_packs_upgrade

The WooCommerce POS woocommerce pos language packs upgrade hook.

Description

apply_filters( 'woocommerce_pos_language_packs_upgrade', (unknown) $transient, (unknown) $response, (unknown) $this_github_url, (unknown) $force ); 

Parameters (4)

0. $transient (unknown)
The transient.
1. $response (unknown)
The response.
2. $this_github_url (unknown)
The this github url.
3. $force (unknown)
The force.

Usage

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

Defined (1)

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

/includes/class-wc-pos-i18n.php  
  1. $transient = apply_filters( 'woocommerce_pos_language_packs_upgrade', $transient, $response, $this->github_url, $force );