-
-
Save searchwpgists/1f888f015a5e798c75426b46ccc13aa0 to your computer and use it in GitHub Desktop.
Drop Media from results that have no parent when parent attribution has been enabled in SearchWP.
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 | |
// Drop Media from results that have no parent when parent attribution has been enabled in SearchWP. | |
// @link https://searchwp.com/documentation/hooks/searchwp-source-post-post_type-parent_attribution-strict | |
add_filter( 'searchwp\source\post\attachment\parent_attribution\strict', '__return_true' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment