Plugin Directory

Changeset 2209260


Ignore:
Timestamp:
12/10/2019 12:42:24 PM (6 years ago)
Author:
mgibbs189
Message:

Second attempt at code formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • log-http-requests/trunk/readme.txt

    r2209255 r2209260  
    2020Customize the length (in days) before older log items are removed:
    2121
    22 ```php
     22<pre>
    2323add_filter( 'lhr_expiration_days', function( $days ) {
    2424    return 7; // default = 1
    2525});
    26 ```
     26</pre>
    2727
    2828Don't log items from a specific hostname:
    2929
    30 ```php
     30<pre>
    3131add_filter( 'lhr_log_data', function( $data ) {
    3232    if ( false !== strpos( $data['url'], 'wordpress.org' ) ) {
     
    3535    return $data;
    3636});
    37 ```
     37</pre>
    3838
    3939In the above example, the `$data` array keys correspond to columns within the `lhr_log` database table.
Note: See TracChangeset for help on using the changeset viewer.