Created
May 13, 2015 08:39
-
-
Save deckerweb/ff49c05ae7d872986d14 to your computer and use it in GitHub Desktop.
Download Monitor - tweak search args for Page Add-On --- status here: testing - don't use yet!!! ;-)
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( 'dlm_page_addon_search_query_args', 'ddw_dlm_search_args' ); | |
/** | |
* Plugin: Download Monitor | |
* Tweak Downloads search args | |
*/ | |
function ddw_dlm_search_args( $args ) { | |
$args[ 'tax_query' ] = array( | |
'relation' => 'AND', | |
array( | |
'taxonomy' => 'dlm_download_category', | |
'field' => 'name', | |
), | |
array( | |
'taxonomy' => 'dlm_download_tag', | |
'field' => 'name', | |
), | |
); | |
return $args; | |
} // end function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment