skipv1_0_0skip_html_element

The WordPress Core skip v1 0 html element function.

Description

skip\v1_0_0\skip_html_element( $tag, (array) $args = array(), (array) $elements = array(), (string) $return = 'html' ); 

Parameters (4)

0. $tag
The tag.
1. $args — Optional. (array) => array()
The args.
2. $elements — Optional. (array) => array()
The elements.
3. $return — Optional. (string) => 'html'
The return.

Usage

  1. if ( !function_exists( 'skip\v1_0_0\skip_html_element' ) ) { 
  2. require_once '/includes/skip/elements/html_element.php'; 
  3.  
  4. // The tag. 
  5. $tag = null; 
  6.  
  7. // The args. 
  8. $args = array(); 
  9.  
  10. // The elements. 
  11. $elements = array(); 
  12.  
  13. // The return. 
  14. $return = 'html'; 
  15.  
  16. // NOTICE! Understand what this does before running. 
  17. $result = skip\v1_0_0\skip_html_element($tag, $args, $elements, $return); 
  18.  

Defined (1)

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

/includes/skip/elements/html_element.php  
  1. function skip_html_element( $tag, $args = array(), $elements = array(), $return = 'html' ) { 
  2. $html_element = new HTML_Element( $tag, $args ); 
  3.  
  4. if( count( $elements ) > 0 ) 
  5. foreach ( $elements AS $element ) 
  6. $html_element->add_element( $element ); 
  7.  
  8. return element_return( $html_element, $return );