Plugin Directory

Changeset 1604475


Ignore:
Timestamp:
02/27/2017 12:05:30 PM (9 years ago)
Author:
eugenbobrowski
Message:

Fix code blocks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debug-tool/trunk/readme.txt

    r1602998 r1604475  
    4343Also you can check any segment of your code.
    4444
    45 ````php do_action('check_segment', 'segment_1');
     45<pre><code>
     46do_action('check_segment', 'segment_1');
    4647
    4748//do somethisng
    4849
    4950do_action('check_segment', 'segment_1');
    50 ````
     51</code></pre>
    5152The code below returns in debug bar new item like this:
    5253
     
    6162And also you can easy add your item to this menu and print there any var_dump or anything else.
    6263
    63 ```php
    64 add_filter('wp_debug_refs', 'my_debug_tool_ref');
     64<pre><code>add_filter('wp_debug_refs', 'my_debug_tool_ref');
    6565
    6666function my_debug_tool_ref ($refs) {
     
    7575}
    7676
    77 ```
     77</code></pre>
    7878
    7979
Note: See TracChangeset for help on using the changeset viewer.