_woocommerce_term_recount

The WooCommerce woocommerce term recount function.

Description

_woocommerce_term_recount( $terms, $taxonomy, $callback, $terms_are_term_taxonomy_ids ); 

Parameters (4)

0. $terms
The terms.
1. $taxonomy
The taxonomy.
2. $callback
The callback.
3. $terms_are_term_taxonomy_ids
The terms are term taxonomy ids.

Usage

  1. if ( !function_exists( '_woocommerce_term_recount' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-deprecated-functions.php'; 
  3.  
  4. // The terms. 
  5. $terms = null; 
  6.  
  7. // The taxonomy. 
  8. $taxonomy = null; 
  9.  
  10. // The callback. 
  11. $callback = null; 
  12.  
  13. // The terms are term taxonomy ids. 
  14. $terms_are_term_taxonomy_ids = null; 
  15.  
  16. // NOTICE! Understand what this does before running. 
  17. $result = _woocommerce_term_recount($terms, $taxonomy, $callback, $terms_are_term_taxonomy_ids); 
  18.  

Defined (1)

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

/includes/wc-deprecated-functions.php  
  1. function _woocommerce_term_recount( $terms, $taxonomy, $callback, $terms_are_term_taxonomy_ids ) { 
  2. wc_deprecated_function( __FUNCTION__, '3.0', '_wc_term_recount' ); 
  3. return _wc_term_recount( $terms, $taxonomy, $callback, $terms_are_term_taxonomy_ids );