Changeset 1604475
- Timestamp:
- 02/27/2017 12:05:30 PM (9 years ago)
- File:
-
- 1 edited
-
debug-tool/trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
debug-tool/trunk/readme.txt
r1602998 r1604475 43 43 Also you can check any segment of your code. 44 44 45 ````php do_action('check_segment', 'segment_1'); 45 <pre><code> 46 do_action('check_segment', 'segment_1'); 46 47 47 48 //do somethisng 48 49 49 50 do_action('check_segment', 'segment_1'); 50 ```` 51 </code></pre> 51 52 The code below returns in debug bar new item like this: 52 53 … … 61 62 And also you can easy add your item to this menu and print there any var_dump or anything else. 62 63 63 ```php 64 add_filter('wp_debug_refs', 'my_debug_tool_ref'); 64 <pre><code>add_filter('wp_debug_refs', 'my_debug_tool_ref'); 65 65 66 66 function my_debug_tool_ref ($refs) { … … 75 75 } 76 76 77 ``` 77 </code></pre> 78 78 79 79
Note: See TracChangeset
for help on using the changeset viewer.