Note: You are viewing the documentation for Version 3View Version 4 Docs

Documentation

View the installation guide, browse the Knowledge Base, find out about SearchWP's many hooks, get support

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:

<?php
// Enable PID output when debugging in SearchWP.
add_filter( 'searchwp_debug_include_pid', '__return_true' );
view raw functions.php hosted with ❤ by GitHub

Parameters

Parameter Type Description
$enabled Boolean

Whether the PID should be included in debug output

Fix keyword search on your site. No coding required!

Now you can utilize all of the content that's gone unrecognized by native WordPress keyword search instantly with SearchWP

Get SearchWP