Filter
- widget_text (for the text)
- widget_title (for the title)
Example
function add_smiley($content) {
$new_content="";
$new_content.= $content . ':)';
return $new_content;
}
add_filter('widget_text', 'add_smiley');
Note that this works only for the content so not if you have a widget with only a title.
Reference
Related Posts:
- Customizer: widget-synced triggers twice
- Hook called before text widget save
- Create Widget or Enable Shortcodes in Sidebar
- Set widget icon in Customizer?
- How do i best handle custom plugin page actions?
- In Which Contexts are Plugins Responsible for Data Validation/Sanitization?
- Plugin Form Submission Best Practice
- Best way to abort plugin in case of insufficient PHP version?
- Update widget form after drag-and-drop (WP save bug)
- What do you think about custom designed plugin/theme options UIs?
- Adding Widget form fields dynamically
- Where to put third party PHP library?
- What is the correct way to build a widget using OOP
- Optimize shortcode callbacks
- Widget development – Drop down options won’t save
- How to integrate a PHP webmail script into the backend of WordPress?
- Calling the widget id of a mult-instance widget from inside the widget?
- How to log plugin errors to plugin error_log file
- Which to use to execute code during the saving of a plugin settings page?
- Add content to widget title in admin area within the widget?
- Has anyone managed to integrate the wp_editor inside a widget?
- Using Primary Color in Plugin Block
- When is it appropriate to put functions on page template vs. functions.php?
- Custom theme sufficient or custom plugin neccessary for this feature set?
- Edit the output of wp_widget_rss_output()
- How to create custom home page via plugin?
- Adding callback function for wp_ajax_ has no effect
- Sessions not creating correctly in custom function
- Possible to preset a widget’s contents via a plugin script?
- Featured Image not showing in admin
- How to add multiple copies of a widget from “available widgets”
- Install widget on plugin activation
- WordPress select dropdown list in widget
- Created Widget Not Showing up on Admin Panel
- How to pass custom options from widget form to widget update callback?
- Broken markup when using the_excerpt() in a widget?
- How to create custom field in worpdress default widgets?
- Widget Admin – Form Submit Event?
- Get the password key when using the wp_new_user_notification_email filter
- Order properties should not be accessed directly
- Can I individually style items in the backend widget list?
- Widget update function not saving values
- How to deal with equal & similar arguments for a function?
- Executing a function upon webhook calling wordpress
- how to use hook deleted_user into custom function to delete user from custom table
- Disable The Events Calendar plugin from loading its scripts
- Where to store the name of a custom table?
- WordPress is automatically linking plain text email addresses
- Is Using WordPress Supplied WYSIWYG Advisable?
- Plugin translations not installed but… strings are translated!
- Add a class to a dynamic sidebar’s wrapper
- Widget is to be compatible with all themes
- Maximum lifetime for nonce
- Clearing caches on plugin uninstall
- Custom Taxonomy to dropdown box on adminside wordpress
- Extending the WP_Widget_Text class
- How to modify the comments to be displayed in a post?
- Incorporate small angular feature in my wordpress site
- Widget Dropdown doesn’t working
- How do I get the sub categories of the parent when in a sub category?
- How to limit number of number of categories displayed by categories widget
- Dynamically creating classes for Widget API
- Why does my widget break other widgets?
- Using a multiple element in widget form
- How to modify files inside wp-includes directory in wordpress
- How should I go about registering JavaScript that isn’t a file? [duplicate]
- Show message from backend
- Why in this archive page that call query_posts() function show only the last 10 posts?
- Minimum Widget Width for Plugin Development
- How to create a wordpress widget that dynamically changes according to the page
- how to save wp_editor html content in options table
- How to remove/replace current page template?
- WordPress dynamic widget by location?
- My plugin creates custom widgets, How can I programatically add them to existing sidebar widget areas?
- How to determine which capability to use?
- Console errors in 6.0-RC1 Widget screen
- Custom Endpoint – Does it possible to use PUT method with WP API Rest?
- Why won’t this submenu page show? – My First WordPress Plugin
- Error code when migrate
- Quick Draft widget (dashboard.php) using custom post_type
- Uncaught Error: Call to undefined function wp_get_current_user() in
- If user is logged-in display/hide widgets ( siteorigine) [closed]
- external Integration with wordpress timeout error
- How to embed or integrated a custom WordPress Widget into the theme?
- Making adding info to an overlay bio easy for average user?
- Implementing Select2 plugin into WordPress
- Associating special meaning with user id 0
- Can I access WordPress API’s from within plugin scripts?
- Downloading Generated XML File
- Link to a admin submenu item using a custom link
- Change the search results header from plugin
- wp_register_sidebar_widget in loop within a plugin?
- grouping my widgets wordpress
- Get fields of a widget
- How to specify widget order or css name via script?
- Developing Themes on WordPress, Looking for Excellent Tutorials [closed]
- How to Implement SAM Broadcaster with WordPress? [closed]
- Extend WP_List_Table class – Edit wp_usermeta – WPPB.me Boilerplate – Action error
- Can I log the searches that are returning 404 in the DB?
- Developing an IP lookup function using an API