Available since: 1.0.10
searchwp_enable_attribution_{post_type}
One of SearchWP’s most powerful features is it’s ability to attribute search result weight from one post to another. If you would like to disable attribution for a post type on the SearchWP settings screen you can do so with this filter.
Example: To tell SearchWP to prevent attribution for bbPress’ Forum post type, add the following to your active theme’s functions.php
:
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_enable_attribution_forum', '__return_false' ); |