Created
August 3, 2020 11:52
-
-
Save jchristopher/63494b3045849231d58e913218517f83 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
// Tell SearchWP to drop Media with no parent when Parent Attribution has been enabled. | |
// This was the default behavior in SearchWP 3 but has changed in SearchWP 4. | |
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