searchwp\debug\dir
4.0.0以降
デバッグログの保存場所を変更します。
パラメータ
| タイプ | パラメータ | デフォルト | 提供開始 |
|---|---|---|---|
| 文字列 | $dir |
定義されたuploadsディレクトリ内のsearchwp-logs |
4.0.0 |
例
All hooks should be added to your custom SearchWP Customizations Plugin.
デバッグログディレクトリの変更
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'; | |
| } ); |

