elementor/modules/announcements
Nami printz cc83a5acb3
Internal: Hide AI popup in the Editor [ED-23215] (#35063)
## PR Checklist

- [ ] The commit message follows our guidelines:
https://github.com/elementor/elementor/blob/master/.github/CONTRIBUTING.md


## PR Type
What kind of change does this PR introduce?

- [ ] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, local variables)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] CI related changes
- [ ] Documentation content changes
- [x] Other... Please describe: Functionality removal / Hides existing
UI component

## Summary

This PR can be summarized in the following changelog entry:

* Hides the AI welcome announcement, preventing it from being displayed
to users.

## Description
An explanation of what is done in this PR

* This PR removes the functionality that generates and displays the AI
welcome announcement within the editor. It eliminates the related class
imports, constants, the conditional check for AI preferences, and the
entire `get_ai_announcement_data` method, ensuring that the AI
onboarding popup no longer appears.

## Test instructions
This PR can be tested by following these steps:

* Navigate to any page or post in the Elementor editor.
* Verify that the AI welcome announcement (popup) does not appear.

## Quality assurance

- [ ] I have tested this code to the best of my abilities
- [ ] I have added unittests to verify the code works as intended
- [ ] Docs have been added / updated (for bug fixes / features)

Fixes #ED-23215
<!--start_gitstream_placeholder-->
###  PR Description
Purpose: Remove AI-powered announcement popup from Elementor editor to
streamline user experience and eliminate promotional interruptions.
Main changes:
- Removed AI announcement generation logic including
get_ai_announcement_data() method and related constants
- Deleted conditional check for AI feature availability in
get_raw_announcements() method
- Updated test assertion to verify announcements root element is no
longer rendered in editor

_Generated by LinearB AI and added by gitStream._
<sub>AI-generated content may contain inaccuracies. Please verify before
using.
💡 **Tip:** You can customize your AI Description using **Guidelines**
[Learn
how](https://docs.gitstream.cm/automation-actions/#describe-changes)</sub>
<!--end_gitstream_placeholder-->

---------

Co-authored-by: ElementorBot <48412871+elementorbot@users.noreply.github.com>
2026-03-10 22:33:59 +02:00
..
assets Tweak: Use inset CSS logical property [ED-11091] (#29167) 2024-11-03 03:28:19 -08:00
classes Internal: Fix PHP lint issues [ED-16914] (#29844) 2025-01-13 17:06:10 +02:00
triggers Internal: Added AI announcement for introduction modal (#22298) 2023-05-03 08:53:13 +03:00
module.php Internal: Hide AI popup in the Editor [ED-23215] (#35063) 2026-03-10 22:33:59 +02:00