I had the same problem. Take $this->includes(); out of the init method, and put it into the register_widgets method:
public function init() {
...
// Include plugin files
// $this->includes(); // <-- remove this
}
public function register_widgets() {
$this->includes(); // <- put it here
\Elementor\Plugin::instance()->widgets_manager->register_widget_type( new \Elementor_oEmbed_Widget() );
}
Related Posts:
- Add self-closing shortcode button to TinyMCE in WP 4.6
- How Do I Use jQuery UI In My Plugin
- Checking if a file is already in the Media Library
- How to implement add_image_size in a plugin
- How to make dynamically-generated content searchable in WordPress?
- Nav Menu meta failing to import
- Nonce in settings API with tabbed navigation
- Add rewrite rule in plugin: with .htaccess in plugin folder or using WordPress functions
- Using preg_replace to clean widget output HTML
- Removing rules from .htaccess
- What is the best way to provide plugin users with a way to customized the styles
- Mapping multiple URLs to same page
- What’s the difference between hooks, filters and actions? [duplicate]
- Add Products to Woocommerce through WP API
- How do I only load js on the post-new.php and post.php pages in admin?
- update_option_{$option} Too Few Arguments
- Check if on Custom Post Type for TinyMCE buttons
- How to add Font Awesome 5 icons in WP Admin dashboard menu?
- Example of uninstaller routine to remove all custom theme options from wp_options
- Modifying values with add_action to be sent to db
- Options API – Validation Callback $input is NULL
- how to use preg_replace for wordpress video?
- Execution limit and Memory limit errors even i changed to 1024M and 600(cache.php,load.php)?
- Are we allowed to use the Allman (BSD) indent style when coding WordPress plugins and themes?
- Configuring WordPress Auth Cookie Expiration
- Plugin development: get_post_meta is not working [closed]
- Correct way check nonce (security) using old Options API
- How to save WP widget instances and options
- Function Get User Object By Username?
- How to run an add_action hook for specific page
- How to use radio buttons in WordPress plugin options using register settings?
- Is it possible to use add_filter from a theme to alter a plugin’s function?
- SQL query for custom taxonomy slugs
- wp_insert_category() setting the ‘cat_ID’ gives not array error
- What should happen when a WordPress Plugin is activated across the network (Network Wide Activation)
- Send push when new post is published in a certain category
- How can we display product price $104 on the cart while the credit card payment method is checked?
- Translation per IP location [closed]
- Add a select option of shortcodes like dropdown in tinymce
- Open modal when user clicks on span in visual editor
- How to paginate a custom page template with custom database tables
- wp E-commerce featured product plugin with muliple option?
- How to Trigger WP CRON at Local Timestamp?
- Problem with saving checkbox values with WordPress Widget API
- How to Control CSS of Admin On Creating only a Specific Custom Post Type
- Force download file from plugin (change output http headers)
- How to get all product in the woo-commerce? [closed]
- Run JavaScript validation script on form submit in plugin
- Check user’s role and store in variable
- What’s the hook for filtering every texts of site?
- Google credentials and redirect URI for Google OAuth2 in a WordPress plugin, questions
- How to add plugin options in wp editor page
- Bypass product key [closed]
- Service Worker Uncaught (in promise) DOMException
- Return conditional category in load_posts_by_ajax
- WordPress Plugin Boilerplate: Addition of 3rd party scripts and styles [closed]
- How to format custom fields when editing an attachment?
- Woocommerce – Provide Associated Category Link for Product List Plugin [closed]
- How can I call wp-load.php in my plugin file
- How to create new content type and flushes rewrite rules without visiting the permalinks page?
- About a programming language starts with [closed]
- Screenshots on plugin page taken old [closed]
- How do I duplicate a single post, with all its properties, and save it as a different post?
- Extract Information from post content (using regex?)
- Using jQuery prepend() with file include
- Customise Grouped Product display in Woocommerce with custom column
- How to Get Last ID?
- Ajax action has 200 status but response of No response data available for this request
- How to display specific data from a custom table to logged in users with a custom role
- Google Web Core Vitals – management, how to in wordpress and advice
- How to add quick edit on the list of users to edit custom fields?
- How to Run Plugin on Server Without Web Browser
- Hiding the WordPress login and password fields from login page
- Adding customs fields on each product on the cart
- Buddypress: adding a new tab direct user to their author page
- Why would one specify multiple arguments when using get_previous_posts_link() which takes only one parameter?
- Unit Testing action hook
- 400 Bad Request and illegal invocation in wp_ajax based on processData set to false or true
- Integrate separate web app inside wordpress [closed]
- I have a plugin where in I have to change the title of the page dynamically by sending parameter to the_title filter
- PHP includes with AJAX actions
- Custom Post Type and Functions
- WordPress custom plugin developement
- How can I map a specific URL pattern to a plugin for processing
- Issue on Getting Images URL of the Post Gallery
- Google does not index data from custom table used for a plugin
- Best practice: What belongs in theme and what in plugin for large eCommerce website
- I can install my plugin in localhost but not in my server
- Change the class of wordpress menu
- WordPress.org how to force expire Cached Banner-772×250 from my Plugin page
- What is the Timeline for the Active Version Pie Chart in the Repository?
- How to change url’s in WordPress when changing domain [duplicate]
- Email verification feature in wordpress social login plugin
- Custom Pin it button is not showing over the image instead it shows as block top_left
- check wp_login into a plugin
- Is wordpress plugin development active? [closed]
- How will i add an option under customizer the event calendar section?
- Return custom product in ajax call loop
- Is it possible to add Custom Dashboard Widgets to Custom Admin Menu Page?
- Is using upgrader_process_complete the correct way to perform plugin updates?