woocommerce_order_terms

The WooCommerce woocommerce order terms function.

Description

woocommerce_order_terms( $the_term, $next_id, $taxonomy, (int) $index = 0, (null) $terms = null ); 

Parameters (5)

0. $the_term
The term.
1. $next_id
The next id.
2. $taxonomy
The taxonomy.
3. $index — Optional. (int)
The index.
4. $terms — Optional. (null) => null
The terms.

Usage

  1. if ( !function_exists( 'woocommerce_order_terms' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-deprecated-functions.php'; 
  3.  
  4. // The term. 
  5. $the_term = null; 
  6.  
  7. // The next id. 
  8. $next_id = null; 
  9.  
  10. // The taxonomy. 
  11. $taxonomy = null; 
  12.  
  13. // The index. 
  14. $index = -1; 
  15.  
  16. // The terms. 
  17. $terms = null; 
  18.  
  19. // NOTICE! Understand what this does before running. 
  20. $result = woocommerce_order_terms($the_term, $next_id, $taxonomy, $index, $terms); 
  21.  

Defined (1)

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

/includes/wc-deprecated-functions.php  
  1. function woocommerce_order_terms( $the_term, $next_id, $taxonomy, $index = 0, $terms = null ) { 
  2. wc_deprecated_function( __FUNCTION__, '3.0', 'wc_reorder_terms' ); 
  3. return wc_reorder_terms( $the_term, $next_id, $taxonomy, $index, $terms );