searchwp\debug\dir
Since: 4.0.0
Table of Contents
Modify where debug logs are stored.
Parameters
Type | Parameter | Default | Since |
---|---|---|---|
String | $dir |
searchwp-logs within the defined uploads directory |
4.0.0 |
Examples
All hooks should be added to your custom SearchWP Customizations Plugin.
Change the debug log directory
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 | |
// 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'; | |
} ); |