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.
Opens WPIDE on
Code
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 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.