Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript.

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
615
Rate this reference

You are not allowed to rate this post.

Comments

Leave a Reply