searchwp\nuke_on_delete
4.0.0以降
デフォルトでは、WordPress管理画面のプラグインページで利用可能なリンクを使用してSearchWPが無効化および削除されると、SearchWPを再インストールして再アクティブ化する場合に備えて、そのデータは残ります。
WordPress管理画面のプラグインページで削除リンクをクリックしたときに、SearchWPが永続的にすべてのデータを削除するようにしたい場合は、SearchWP設定画面の高度な設定タブのチェックボックスをオンにするか、このフックを使用してください。
パラメータ
| タイプ | パラメータ | デフォルト | 提供開始 |
|---|---|---|---|
| ブール値 | $enabled |
SearchWP設定画面の「高度な設定」タブのチェックボックスの状態 | 4.0.0 |
例
All hooks should be added to your custom SearchWP Customizations Plugin.
アンインストール時にすべてのSearchWPデータを削除
SearchWPのアンインストールルーチンをプログラムで有効にする
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 | |
| // Remove all SearchWP data when clicking Delete link on WordPress Admin Plugins page. | |
| // NOTE: This operation CANNOT be reversed. | |
| add_filter( 'searchwp\nuke_on_delete', '__return_true' ); |

