Available since: 2.9
searchwp_debug_include_pid
View Parameters »Debugging in SearchWP can be very helpful in a number of ways. By default the debug log is designed to be as meaningful as possible while being terse as well. If you’d like more insight into the debug output SearchWP can also include a process ID alongside each log entry. This is disabled by default as it isn’t globally useful when debugging.
To enable PID inclusion in debug output you can use the following hook:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Enable PID output when debugging in SearchWP. | |
add_filter( 'searchwp_debug_include_pid', '__return_true' ); |
Parameters
Parameter | Type | Description |
---|---|---|
$enabled |
Boolean |
Whether the PID should be included in debug output |