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


Since: 4.0.0

Table of Contents

Modify where debug logs are stored.


Type Parameter Default Since
String $dir searchwp-logs within the defined uploads directory 4.0.0


All hooks should be added to your custom SearchWP Customizations Plugin.

Change the debug log directory

// Change the debug log directory in SearchWP.
add_filter( 'searchwp\debug\dir', function( $dir ) {
// NOTE: Make sure permissions are correct for this directory.
return '/var/logs/searchwp-debug-logs';
} );

How to use this code

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