searchwp\query\result\load_data\all_attributes
4.0.0以降
検索結果のすべてのエントリー属性データをSearchWPが読み込むかどうかを制御します。
注意: この機能が有効になっている場合、登録されているすべての属性データが読み込まれます。 searchwp\query\result\load_data も参照してください。
パラメータ
| タイプ | パラメータ | デフォルト | 提供開始 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ブール値 | $enabled |
false |
4.0.0 |
||||||||||||
| 配列 |
$args
|
4.0.0 |
|||||||||||||
例
All hooks should be added to your custom SearchWP Customizations Plugin.
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 | |
| // Load all Source Attribute data for SearchWP search results. | |
| add_filter( 'searchwp\query\result\load_data\all_attributes', function( $enabled, $args ) { | |
| return true; | |
| }, 30, 2 ); |

