wc_get_text_attributes_filter_callback

See if an attribute is actually valid.

Description

wc_get_text_attributes_filter_callback( (string) $value ); 

Parameters (1)

0. $value (string)
The value.

Usage

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

Defined (1)

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

/includes/wc-attribute-functions.php  
  1. function wc_get_text_attributes_filter_callback( $value ) { 
  2. return '' !== $value;