# Hide Elementor Pro Upsells in wp-admin and the Editor

> Hides the "Upgrade" and "Get Pro" menu links in wp-admin and the locked Pro widgets in the Elementor panel, for a cleaner interface on sites that use the free version.

- Type: PHP
- Runs: Run everywhere
- Category: [Page Builders & Themes](https://wpide.com/library/category/page-builders/)
- Tags: elementor, upsell, admin, editor
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/elementor-hide-pro-upsells/

## Code

```php
add_action( 'admin_head', function () {
    echo '<style id="wpide-el-upsells">#adminmenu a[href*="go_elementor_pro"],#adminmenu a[href*="elementor-one-upgrade"],#adminmenu a[href*="go_knowledge_base_site"]{display:none!important;}</style>' . "\n";
} );

add_action( 'elementor/editor/after_enqueue_styles', function () {
    wp_add_inline_style( 'elementor-editor', '.elementor-element-wrapper.elementor-element--promotion,#elementor-panel-get-pro-elements,#elementor-panel-get-pro-elements-sticky,.elementor-panel-heading-promotion{display:none!important;}' );
} );
```

## Notes

This only hides the links with CSS; nothing in Elementor is changed.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Hide Elementor Pro Upsells in wp-admin and the Editor" 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/
