Home / Admin / Exclude downloads from search
Duplicate Snippet

Embed Snippet on Your Site

Exclude downloads from search

Exclude downloads from showing in search results

Code Preview
php
<?php
function sumobi_download_post_type_args( $download_args ) {
	$download_args['exclude_from_search'] = true;
	return $download_args;
}
add_filter( 'edd_download_post_type_args', 'sumobi_download_post_type_args' );

Comments

Add a Comment