searchwp\query\result\load_data\all_attributes
Seit: 4.0.0
Steuert, ob SearchWP alle Eingangsattributdaten für Suchergebnisse lädt.
Hinweis: Wenn diese Funktionalität aktiviert ist, werden alle registrierten Attributdaten geladen. Siehe auch searchwp\query\result\load_data
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.
Alle Quellattributdaten für SearchWP-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 all Source Attribute data for SearchWP search results. | |
| add_filter( 'searchwp\query\result\load_data\all_attributes', function( $enabled, $args ) { | |
| return true; | |
| }, 30, 2 ); |

