nggtags_delete_empty_element

The NextCellent Gallery nggtags delete empty element function.

Description

nggtags_delete_empty_element( &$element ); 

Parameters (1)

0. $element
The element.

Usage

  1. if ( !function_exists( 'nggtags_delete_empty_element' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextcellent-gallery/lib/tags.php'; 
  3.  
  4. // The element. 
  5. $element = &$element; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = nggtags_delete_empty_element($element); 
  9.  

Defined (1)

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

/lib/tags.php  
  1. function nggtags_delete_empty_element( &$element ) { 
  2. $element = stripslashes($element); 
  3. $element = trim($element); 
  4. if ( !empty($element) ) { 
  5. return $element;