Instantly share code, notes, and snippets.

@amdrew /gist:6645804
Last active Dec 23, 2015

Embed
What would you like to do?
Exclude downloads from search in Easy Digital Downloads
<?php
/**
* Exclude downloads from search
*/
function my_child_theme_download_post_type_args( $download_args ) {
$download_args['exclude_from_search'] = true;
return $download_args;
}
add_action( 'edd_download_post_type_args', 'my_child_theme_download_post_type_args' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment