dump_html_tree

The rtMedia for WordPress, BuddyPress and bbPress dump html tree function.

Description

dump_html_tree( $node, (constant) $show_attr = true, (int) $deep = 0 ); 

Parameters (3)

0. $node
The node.
1. $show_attr — Optional. (constant) => true
The show attr.
2. $deep — Optional. (int)
The deep.

Usage

  1. if ( !function_exists( 'dump_html_tree' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'rtmedia-for-wordpress-buddypress-and-bbpress/lib/simple-html-dom/simple_html_dom.php'; 
  3.  
  4. // The node. 
  5. $node = null; 
  6.  
  7. // The show attr. 
  8. $show_attr = true; 
  9.  
  10. // The deep. 
  11. $deep = -1; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = dump_html_tree($node, $show_attr, $deep); 
  15.  

Defined (1)

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

/lib/simple-html-dom/simple_html_dom.php  
  1. function dump_html_tree($node, $show_attr=true, $deep=0) 
  2. $node->dump($node);