searchwp\query\result\load_data\all_attributes
Since: 4.0.0
Table of Contents
Control whether SearchWP loads all Entry Attribute data for search results.
Note: When this functionality is enabled, all registered Attribute data will be loaded. See also searchwp\query\result\load_data
Parameters
Type | Parameter | Default | Since | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Boolean | $enabled |
false |
4.0.0 |
||||||||||||
Array |
$args
|
4.0.0 |
Examples
All hooks should be added to your custom SearchWP Customizations Plugin.
Load all Source Attribute data for SearchWP search results
This file contains 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 ); |