searchwp\debug\dir
Da: 4.0.0
Indice
Modifica dove vengono archiviati i log di debug.
Parametri
| Tipo | Parametro | Predefinito | Da |
|---|---|---|---|
| Stringa | $dir |
searchwp-logs all'interno della directory uploads definita |
4.0.0 |
Esempi
All hooks should be added to your custom SearchWP Customizations Plugin.
Cambia la directory dei log di debug
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'; | |
| } ); |

