woocommerce_sanitize_taxonomy_name

The WooCommerce woocommerce sanitize taxonomy name function.

Description

woocommerce_sanitize_taxonomy_name( $taxonomy ); 

Parameters (1)

0. $taxonomy
The taxonomy.

Usage

  1. if ( !function_exists( 'woocommerce_sanitize_taxonomy_name' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-deprecated-functions.php'; 
  3.  
  4. // The taxonomy. 
  5. $taxonomy = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = woocommerce_sanitize_taxonomy_name($taxonomy); 
  9.  

Defined (1)

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

/includes/wc-deprecated-functions.php  
  1. function woocommerce_sanitize_taxonomy_name( $taxonomy ) { 
  2. return wc_sanitize_taxonomy_name( $taxonomy );