Skip to content

Instantly share code, notes, and snippets.

@searchwpgists
Created March 29, 2022 12:59
Show Gist options
  • Save searchwpgists/7054e1c23fc42501a2a60f7b1bd35fef to your computer and use it in GitHub Desktop.
Save searchwpgists/7054e1c23fc42501a2a60f7b1bd35fef to your computer and use it in GitHub Desktop.
Change the debug log directory in SearchWP
<?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';
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment