Turn Off the EDD Downloads Archive Page
Removes the automatic /downloads/ archive page, for stores that list products on a page they designed themselves with the [downloads] shortcode or blocks.
Opens WPIDE on
Code
add_filter( 'edd_download_post_type_args', function ( $args ) {
$args['has_archive'] = false;
return $args;
} );
Notes
Save Settings > Permalinks afterwards; single download pages keep working.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.