wc_implode_text_attributes

Implode an array of attributes using WC_DELIMITER.

Description

(string) wc_implode_text_attributes( (array) $attributes ); 

Returns (string)

Parameters (1)

0. $attributes (array)
The attributes.

Usage

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

Defined (1)

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

/includes/wc-attribute-functions.php  
  1. function wc_implode_text_attributes( $attributes ) { 
  2. return implode( ' ' . WC_DELIMITER . ' ', $attributes );