Depreciated warning on Elementor
-
Hi. First up… amazing plugin. Thank you very much for the hard work you’ve done on this; it’s an absolute credit.
I’ve just upgraded to Elementor 3.10.1, and am receiving the following error:
Deprecated: Hook elementor/widgets/widgets_registered is deprecated since version 3.5.0! Use elementor/widgets/register instead. in /app/web/wp/wp-includes/functions.php on line 5758
This is being caused by this line of code:
add_action( ‘elementor/widgets/widgets_registered’, [ $this, ‘register_widgets’ ] );
…located in schema-and-structured-data-for-wp/modules/elementor/elementor-loader.php, around line 103
The fix for this should be a case of updating the line to:
add_action( ‘elementor/widgets/register’, [ $this, ‘register_widgets’ ] );
…although, I’m sure there will be some regression testing involved.
Would you mind patching this when you have an opportunity?
Again, thank you for your hard work on this plugin; it’s super-handy, and very, very useful.
- The topic ‘Depreciated warning on Elementor’ is closed to new replies.