searchwp\debug\dir
Desde: 4.0.0
Tabla de contenidos
Modificar dónde se almacenan los registros de depuración.
Parámetros
| Tipo | Parámetro | Predeterminado | Desde |
|---|---|---|---|
| Cadena | $dir |
searchwp-logs dentro del directorio uploads definido |
4.0.0 |
Ejemplos
All hooks should be added to your custom SearchWP Customizations Plugin.
Cambiar el directorio de registro de depuración
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'; | |
| } ); |

