Created
April 24, 2019 14:19
-
-
Save jchristopher/111e885e5630ccb29f3aaa8913d348ca to your computer and use it in GitHub Desktop.
Customize whether SearchWP considers an atatributed used
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 | |
add_filter( 'searchwp_is_attribute_used', function( $used, $attribute ) { | |
// TODO: Customize $used where applicable. $attribute is the attribute being evaluated. | |
return $used; // true/false | |
}, 20, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment