Skip to main content
Easy Digital Downloads Documentation
Documentation, Reference Materials, and Tutorials for Easy Digital Downloads

Hiding Downloads from Search

You can exclude the downloads post type from search by adding this code snippet to your site specific plugin or functions.php:

function pw_edd_hide_from_search( $args ) {
	$args['exclude_from_search'] = true;
	return $args;
}
add_filter( 'edd_download_post_type_args', 'pw_edd_hide_from_search' );
Read our latest blog post:
How to Make a WordPress eCommerce Website