themovation / th-widget-pack

Theme Widget Pack
19 stars 6 forks source link

register_widget_type' and 'widgets_registered Deprecated #214

Open markbosky opened 1 year ago

markbosky commented 1 year ago

register_widget_type' or 'widgets_registered functions have been deprecated in Elementor v3.1.6

This change breaks th-widget-pack plugin functionality.

https://github.com/elementor/elementor/issues/23745 https://developers.elementor.com/v3-5-planned-deprecations/

rami-elementor commented 1 year ago

How to fix the issue:

https://developers.elementor.com/docs/deprecations/advanced-example/

rami-elementor commented 1 year ago

@ryanlabelle I've seen https://github.com/themovation/th-widget-pack/pull/205 PR.

You need to replace the deprecated _register_controls methods with register_controls: https://github.com/search?q=repo%3Athemovation%2Fth-widget-pack+_register_controls&type=code

Furthermore, you need to update all the register_widget_type instances: https://github.com/search?q=repo%3Athemovation%2Fth-widget-pack%20register_widget_type&type=code To register the widgets the correct way.

ryanlabelle commented 1 year ago

Hey @rami-elementor and @markbosky , we fixed this and rolled out a new version yesterday. :) We will merge with Master in the next few days. If you have a copy of our themes, you should be notified in the dashboard.

Thanks for letting us know.