# Remove the Automatic EDD Purchase Button From Downloads

> Stops Easy Digital Downloads adding a purchase button below every download's content, for pages where you place the button yourself with a block or shortcode.

- Type: PHP
- Runs: Run everywhere
- Category: [Easy Digital Downloads](https://wpide.com/library/category/edd/)
- Requires: Easy Digital Downloads
- Tags: edd, buttons, templates
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/edd-remove-auto-purchase-button/

## Code

```php
add_action( 'init', function () {
    remove_action( 'edd_after_download_content', 'edd_append_purchase_link' );
}, 20 );
```

## Notes

Place the button with [purchase_link] or the EDD Buy Button block wherever you want it.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Remove the Automatic EDD Purchase Button From Downloads" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
