The default widgets do not offer any hooks for that. You have to replace the default widget and add your field to the new class.
The other option would be using JavaScript to insert the field, and a filter for 'update_option_widget_' . $widget->id_base to save the value.
I think the separate class is the cleaner approach.
Related Posts:
- display most popular tags in two columns
- How can the searchform.php know if it’s used on a registered sidebar id ‘sidebar-1’ or ‘sidebar-2’?
- How to get the registered sidebar’s name by its id?
- WordPress menu deletes when trying to add a hook
- dynamic sidebar not showing anything
- Get widget settings function?
- javaScript in section of WP API
- Add before_content and after_content to register_sidebar
- PHP Deprecated: WP_RSSjb has a deprecated constructor
- WordPress widget/sidebar dividers?
- Missing argument 3 for wp_register_sidebar_widget()
- Missing sidebar parameter “fix” – before_content
- How to put a variable in a instance in the widget
- Dynamic Sidebars & Echo
- Child page menu in sidebar
- Adding a widget function into the php theme file
- How to determine if the sidebar is empty? Or not active?
- Widget back end radio button issue
- Sidebar not appearing in footer, but it appears everywhere else!
- My website is not showing Footer section
- How to get post category list as select in front-end?
- Custom Taxonomy Select Menu: Setting default option value?
- Show different website layout if no sidebar added
- Stuck with sidebar registering
- Don’t display a sidebar widget when on a specific page
- How to set value selected using select2 jquery plugin
- How a HTML form can trigger a PHP function?
- Retrieve the whole widget sidebar and pass it inside an html
- Loading Widgets Via Child Theme
- Reload page with a different shortcode when a user selects from a dropdown
- is_user_logged_in() not working in homepage
- Customizing the output of the archive and category widget without altering the original behavior of the widget
- Add disclaimer before certain posts and pages
- How to list categories by page id in wordpress
- how to run a php code in widget?
- Cannot access variables within a widget
- WordPress – registering sidebar and adding a button directly after .textwidget
- List sibling pages widget, exclude current page
- My custom widget won’t stay in the widget area after I refresh the widget page
- WP Debug enabled Undefined index error in a widget
- MySQL “Or” Condition
- How to register images uploaded via FTP in media library?
- how to get permalink structure with php
- Woocommerce auto cancel On-Hold after X days
- Why does “get_option” pull in the older value in options.php, rather than the newer value, on submission of a form?
- Enqueue less file not working in child theme?
- How can I loop into two different DIVS without repeating the DIVs
- Removing unnecessary wordpress files
- Change links automatically to affiliate links
- Use is_product_category() properly
- Theme Options: If There is No Input, Don’t Display?
- Placing raw HTML inside a WordPress shortcode
- Changing Woocommerce flat rate every nth number of items
- Convert all images to PNG on file upload
- If search results empty then execute certain code
- Way to querry data (tags) from a wordpress database?
- Using fwrite() and “a” appends multiple times instead of once
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- How does WordPress insert Paragraphs in posts
- Making BuddyPress Activity Stream (Post Type) Featured Images Clickable [closed]
- Keyword checking in Gravity Forms
- how to refresh div on template part?
- Title Case WordPress Menu Items
- How to disable controls in theme customizer?
- register_taxonomy() take much queries
- is there a benefit in using a constant over get_stylesheet_directory_uri?
- wp_dropdown_pages auto submit
- WooCommerce Tabs [closed]
- ::before on open/close function [closed]
- REQUIRED: get_bloginfo(‘template_url’) was found in the file search.php. Use get_template_directory_uri() instead
- How to check if a PHP string is different than meta field?
- Displaying posts based on category
- Issue with fetching mysql data and displaying results via shortcode in webpage
- Noindex Posts From Certain Authors In WordPress
- Show all tags within a category?
- This function is deprecated; use mysql_real_escape_string() instead
- How can I alter this code to accept a slug as well as an ID?
- Enqueueing a code block from an options framework
- SQL error with custom query
- How do you create a custom category widget that you can style?
- How to preload header logo image in WordPress? like what’s the code and where do I put it?
- Contain multiple page templates in one PHP custom template file in WordPress?
- How do I reopen the (Popup Maker) after entering the correct password for a password protected page?
- Display metabox galleries on specific page template in admin editor
- Custom plugin: how do I call a PHP file if settings option is set to true?
- Inserting a class on before_widget if checkbox is checked
- How to put 2 php codes in functions.php without site crashing
- dashboard widget form not submit mails
- How do I get the value of a current user’s custom field?
- How to make a “page-option” in WordPress
- Allow Comments by Default for Multiple Post Types
- How to get User Avatar Image with link to Author and User name in Html Title tag?
- WP HTTP API call response
- Fatal error when using array_diff() function inside of wp_update_nav_menu hook?
- Postmeta not saving
- Hide the content before the more tag in the “single page”
- Add multiple HTML attributes to an Elementor button
- /page/2/ redirect to 404
- require used as a function to load theme dependencies?
- Filtering with Attributes – how to display all non-queried products below query