debugpress-debuglog-lines-to-load

Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

Filter:

debugpress-debuglog-lines-to-load

Modify number of lines loaded by the Debugger Debug Log panel.

This filter has 1 argument.

Arguments

  • $lines: number of lines to return. The default is 5000. Return 0 to load the whole log. This is not recommended, because for big logs it can take a long time to load or crash the browser.

Example

Increase debug log lines return by debugger to 10000.

add_filter('debugpress-debuglog-lines-to-load', 'custom__debugpress-debuglog-lines-to-load');
function custom__debugpress-debuglog-lines-to-load($lines) {
  return 10000;
}

 

0
0
909
Rate this reference

You are not allowed to rate this post.

Leave a Comment