Skip to main content

Capture more recent debug-log entries in the Support Mode diagnostic snapshot

Free Beginner Since v1.0.0

benecaster_support_mode_log_limit caps how many benecaster_debug_log rows are bundled into the gzipped payload POSTed to the license server when an admin clicks “Send diagnostic log to Benecaster support”. Default is 200. Add-ons that emit a high volume of verbose entries under Support Mode may want to raise the cap so the snapshot retains enough history for the support session. Filter values less than 1 are ignored (sender falls back to 200 default).

Code

<?php
add_filter(
    'benecaster_support_mode_log_limit',
    static fn() => 500
);

Hooks Used

  • benecaster_support_mode_log_limit