Note: You are viewing the documentation for Version 4View Version 3 Docs


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


Type Parameter Default Since
Boolean $enabled false 4.0.0
Array $args
Key Type Value
source String Source name of result
id String ID of result
query \SearchWP\Query The Query for this search


All hooks should be added to your custom SearchWP Customizations Plugin.

Load all Source Attribute data for SearchWP search results

// Load all Source Attribute data for SearchWP search results.
function( $enabled, $args ) {
return true;
30, 2

How to use this code

Fix keyword search on your site. No coding required!

Now you can utilize all of the content that's gone unrecognized by native WordPress keyword search instantly with SearchWP

Get SearchWP