Skip to content

Instantly share code, notes, and snippets.

@deckerweb
Created May 13, 2015 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deckerweb/ff49c05ae7d872986d14 to your computer and use it in GitHub Desktop.
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!!! ;-)
<?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