Title: Cannot redeclare control&#8221; notice
Last modified: September 9, 2026

---

# Cannot redeclare control” notice

 *  Resolved [federicopalma92](https://wordpress.org/support/users/federicopalma92/)
 * (@federicopalma92)
 * [3 weeks ago](https://wordpress.org/support/topic/cannot-redeclare-control-notice/)
 * After updating Code Snippets to the latest version (which includes the new Elementor
   promotion notice feature), opening any page in the Elementor editor triggers 
   the following PHP notices:
 *     ```wp-block-code
       Notice: Function Elementor\Controls_Manager::add_control_to_stack was called incorrectly. Cannot redeclare control with same name "code_snippets_promotion_notice_elementor_pro".
       Notice: Function Elementor\Controls_Manager::add_control_to_stack was called incorrectly. Cannot redeclare control with same name "code_snippets_promotion_notice_elementor_core".
       ```
   
 * Both notices point to `/wp-includes/functions.php` on line 6260.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Imants](https://wordpress.org/support/users/0aksmith/)
 * (@0aksmith)
 * [2 weeks, 5 days ago](https://wordpress.org/support/topic/cannot-redeclare-control-notice/#post-19017440)
 * Hi [@federicopalma92](https://wordpress.org/support/users/federicopalma92/),
 * Thank you for reporting this. We have confirmed that the notices originate from
   Code Snippets 3.10.2.
 * You can follow the issue here:
 * [https://github.com/codesnippetspro/code-snippets/issues/550](https://github.com/codesnippetspro/code-snippets/issues/550)
 * We have corrected the duplicate initialization in our development branch already
   and this queued to be released with the next version update.
 * Sorry for the inconvenience.

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcannot-redeclare-control-notice%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Imants](https://wordpress.org/support/users/0aksmith/)
 * Last activity: [2 weeks, 5 days ago](https://wordpress.org/support/topic/cannot-redeclare-control-notice/#post-19017440)
 * Status: resolved