Available since: 2.6
searchwp_swp_query_shutdown
This action is fired once SWP_Query
has found results, it is the last action to fire during this process. It is most useful when removing hooks you’ve put in place when using SWP_Query
.
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_action( 'searchwp_swp_query_shutdown', function() { | |
// SWP_Query has found results and is shutting down | |
}); |