Adding extra fields to an existing Elementor widget

Following on from creating your own Elementor widgets it is possible to add extra fields to existing widgets.

Again there are no hooks or filters for this, we'll be interacting with the Elementor class directly.

https://gist.github.com/dtbaker/aacac996beddc3bcfb1632c3b3d5347b

Pretty easy.

5 comments:

Thanks for your reply Dave but it change nothings in my edit image box. I can’t see the custom “select” drop down . I get a quick warning saying that it miss args 2 and 3 in the add_action(‘elementor/element/before_section_end’, function($section, $section_id, $args) line. the warning lasts less than a second before disappering

Reply

Leave a Reply

Your email address will not be published. Required fields are marked *