searchwp\debug\dir
Seit: 4.0.0
Ändern Sie, wo Debug-Protokolle gespeichert werden.
Parameter
| Typ | Parameter | Standard | Seit |
|---|---|---|---|
| Zeichenkette | $dir |
searchwp-logs innerhalb des definierten uploads-Verzeichnisses |
4.0.0 |
Beispiele
All hooks should be added to your custom SearchWP Customizations Plugin.
Ändern Sie das Debug-Protokollverzeichnis
This file contains hidden or 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'; | |
| } ); |

