It is not possible to remove it from attribute filter. When rendering image, plugin is doing as below.
$output .= rtrim("<img $hwstring");
foreach ( $attr as $name => $value ) {
$output .= sprintf( ' %s="%s"', $name, $value );
}
$output .= ' />';
It is attaching width and height string beforehand and only applying attribute. Sad thing is that width and height is not kept in attribute filter.
**
I am not sure this should be posted as answer. I posted here because I could not comment in your question.**
Related Posts:
- What is the quickest way to make a widget?
- Widget Options Not saving
- Complex widget form UI – examples and best practices
- How to add image uploader to a custom widget?
- 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?
- Why won’t my custom widget stay in the sidebar after a reload?
- How to put Stack Exchange Flair as widget?
- How to save widget fields generated from an array?
- Extending WP_Widget throws error when Monster Widget used
- Image Uploader API
- Modify ‘Sizes’ Attribute for Images with Specific Class
- wp_get_attachment_image() not displaying post images even though wp_get_attachment_url() echo correct urls
- 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 Add the “Insert From URL” Tab to a Custom 3.5 Media Uploader?
- Highlight custom widgets in the admin area?
- How do I rebind event after widget save
- Creating a rotating header /image slider using theme customization
- Widgets vs. Theme Mods
- Difference between widget form code variables
- Custom shortcode in widget forced to top of widget
- How to exclude certain widget from showing up on home/front page? [duplicate]
- How Can I Register Menus and Widgets Conditionally Based on Theme Options/Settings?
- Where (what direcory) are the default WordPress Widget Codes stored?
- check for shortcode in post/pages AND widgets AND template files
- Why can’t I add this feed to the RSS widget?
- Using Advanced Custom Fields in a widget
- Query for recent images across multiple posts
- Closest thing to an is_widget() tag?
- Add filename to attachment page url
- How to “pair” two widgets side by side in one sidebar [closed]
- Can I the caption shortcode to set caption to a data attribute, and with the image’s alignment intact?
- Custom dashboard widget search box
- Notice: Undefined index: filter in …wp-includes/default-widgets.php on line 382
- Need some help understanding widgets
- register widget class not written in theme
- Font awesome Icon HTML in widgets disappear on save
- Adding width and height to wp_get_attachment_image_src
- Hide widget if user is logged in without plugin
- for class wp_widget, in what order are the member functions called?
- unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘)’ in widget [closed]
- How can hide widget title if custom widget is empty
- I want to display custom text widgets for each post in the sidebar?
- Wrap the widget content with a div and get the widget title outside? [closed]
- Is there any way to parse blocks inside widget area?
- WordPress Widget Multiselect Issue
- How to show all the filters with woocommerce layered nav filter widget
- Using custom image resizing script in a page
- Programmatically add widgets to sidebars
- How to create a dashboard widget for one user
- Programmatically add widgets to sidebars
- Dashboard Widget drawn before opening HTML tag
- How to fix wordpress site url attaching to social media links in the widget?
- register_sidebar fails when using a include within functions.php
- NextGEN Gallery – open all images on page in fancybox [closed]
- get_the_title and get_permalink outside of the Loop
- How to load a stylesheet into wp_head from a custom widget?
- how to add the same Widget twice to a sidebar?
- WordPress archives widget causes Bing bot 404 errors
- My widget not printing before_widgets and after widgets
- Enqueue script only when side widget is used
- Address automatically generated ids in css [closed]
- Widget page stopped loading
- Customise the Category Widget
- looping widgets to organize bootstrap grids
- How to change widget’s form color in admin?
- Removing widget without using unregister_widget
- Text Widget to Show database fields based on post
- Widget constructor: about $id_base and $options
- Display Login user name in Thim:login Popup widget
- Adding pagination to my theme [closed]
- Adding A New Widget to WordPress Disables the Existing Widgets
- Reposition the widget sidebar in Appearance->Widgets
- Hiding the widget meta box in the Appearance->Widget screen
- Stop ‘extends WP_Widget’ displaying the (backend) form, frontend?
- Change default “Apply Changes To” radio option when editing images
- Editor Widget Role
- How can I build a widget area widget using the built in WordPress functionalities?
- How to display a widget available for all themes
- widgets in contacts only
- Change the way wordpress outputs images or image galleries
- How to hide sidebar widgets in all pages except Hompage?
- Add image custom attribute [closed]
- HTML in PHP problem [closed]
- Add fields to edit in custom widget
- getBlockVariations(…) is undefined in Widget and Template Part editors but not Post Editor