searchwp\query\result\load_data
Seit: 4.0.0
Steuert, ob SearchWP anwendbare Entry Attribute-Daten für Suchergebnisse lädt.
Hinweis: Wenn diese Funktionalität aktiviert ist, werden nur die dem Engine hinzugefügten Attributdaten geladen. Siehe auch searchwp\query\result\load_data\all_attributes
Parameter
| Typ | Parameter | Standard | Seit | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Boolean | $enabled |
false |
4.0.0 |
||||||||||||
| Array |
$args
|
4.0.0 |
|||||||||||||
Beispiele
All hooks should be added to your custom SearchWP Customizations Plugin.
Source Attribute-Daten für Suchergebnisse laden
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 Source Attribute data for SearchWP search results. | |
| add_filter( 'searchwp\query\result\load_data', function( $enabled, $args ) { | |
| return true; | |
| }, 30, 2 ); |

