You forgot the constructor
Example:
function __construct() {
parent::__construct(
'foo_widget', // Base ID
__( 'Widget Title', 'text_domain' ), // Name
array( 'description' => __( 'A Foo Widget', 'text_domain' ), ) // Args
);
}
Related Posts:
- What is the quickest way to make a widget?
- Widget Options Not saving
- Complex widget form UI – examples and best practices
- Remove before_widget / after_widget content from Wp_Widget_Text
- How to update widget from widget() function?
- Is It Possible to Restore Accidentally Deleted Widgets?
- How do I create a widget that only allows a single instance?
- how to extend a WP_widget twice
- Defer Code in Widgets – Page Speed
- How does the default recent posts widget work with cache?
- Add new section to “Right Now” widget
- Creating a admin widget for /wp-admin/post.php?
- How to save widget fields generated from an array?
- Remove image height/width attributes from Image Widget
- Extending WP_Widget throws error when Monster Widget used
- Add a specific css to a widget
- Save button is not working on custom widget
- Enabled checkbox by default in WordPress widgets
- Got a problem with a widget
- SELECT field options disappear when saving widget
- Problem with WP_Query loop and search term
- Custom tabs widget don’t work in google chrome, is blocked, do not change the tabs. Why?
- Extending Widgets – Exclude # of posts field from Recent Posts Widget
- How can I use the built in WordPress “browse link” functionality?
- Code for Recent Posts Widget
- Modifying the default search widget
- Prevent widgets removal
- Is there a way to add more tags to the tag cloud?
- Modify recent post sidebar to show post thumbs with out plugins
- How to build widget with arrays inside arrays?
- How do I save data from submitted form from widget
- Why Can’t wp_editor Be Used in a Custom Widget?
- Disable default WordPress widgets in sidebar
- Updating to Version 4.5 bumped my “main sidebar” widget out of place
- How can I delete all inactive widgets?
- Call sidebar from a template
- Adding classes to dynamic sidebar
- Widget Area: Modify $param[‘xy’] from widget-$n
- Need help adding additional controls to a custom widget
- Why do none of my widgets have a title?
- Adding a widget to a string of HTML
- How to add a class to a link in text editor
- WordPress widget new instance creates content duplicates
- Add ‘Right Now’ widget to custom dashboard
- Trying to wrap around first word of multiple word strings with a widget_title() filter, only works on two word strings and not more than two
- How to hack recent comments default widget?
- Recent Posts widget without Title
- Pre-install widgets in WP-Admin
- Subscribe2 widget with choosing categories?
- How to change plugin`s template (view) correctly?
- Showing a Thickbox (tb_show) does nothing
- How do I add a widget from an Android phone?
- Check if the current shortcode is being used in a widget
- Right way to update widget on dynamic new input field
- How to Add TinyMCE to widget
- How can I get the first section of a page 100% width, while the rest will have a sidebar? [closed]
- Search widget will search everything in the site, how to limit to only search gallery name
- Modify ‘Sizes’ Attribute for Images with Specific Class
- Issue understanding and using WordPress filters and actions
- How can I inject html after the [x]th widget inside a Sidebar? [duplicate]
- Tabs and Category Widget
- Grabbing how Many Posts by Month for a Dashboard Widget
- Is it possible to remove from default category widget?
- ‘is_author()’ logic in widget for author only
- Widgets won’t save
- wp_dropdown_pages in widget form
- Recent Comments from Specific Category Widget
- Different sidebars not changing
- How do I create a template page with a specific widget as the content?
- How to make widget appear conditionally
- How Migrate a Legacy Widget to block?
- Ampersand breaking Widget title
- How to append custom text to the output of ‘categories widget’?
- Extending the WordPress Recent Posts Widget
- How to paste widget to a specific page
- How do I find out which
- An archive widget, coming from nowhere on my posts and pages
- custom widget not saved to sidebar
- When editing in block editor, the post/article gets under the floating widgets
- Make widget with media upload repeatable
- Widget display in theme
- Is it possible to dynamically output the name of the widgets?
- Apply two different styles to Wiget Titles along with a decorative line
- How Can I Replicate & Register a Widget from the Child Theme
- Widget to embed youtube video
- Can I use wp_widget_rss_output to show my site’s feed in the dashboard?
- How to make featured area?
- Checking if widget has title not working
- wp_list_categories + widget
- How can I add widgets to the category page?
- Remove default WordPress widgets
- Can I add a widget to the of my site?
- How to show widget in frontend?
- Widget Development – Displaying dropdown content
- Single Widget Multi Sidebar
- An issue with register_sidebar and the admin interface
- page url in shortcode
- iframe/embed vid in text widget loads outside container and moves around when scrolling the page?
- Widget on home page displays wrong time compared to same widget on inside pages
- Widget logic not working