image_send_to_editor
function insert_img_rel_attrib( $html, $id, $caption, $title, $align, $url, $size, $alt )
{
/* Run your magic on the image $html to insert rel attrib */
return $html;
}
add_filter( 'image_send_to_editor', 'insert_img_rel_attrib' );
Related Posts:
- Set JPEG compression for specific custom image sizes
- remove links from images using functions.php
- Removing default image size list in Media Box
- How to add classes to images based on their categories?
- How to reduce original image quality on upload?
- Auto delete WordPress images/thumbnails (all sizes) and featured after X days/hours, or similar?
- How to add a rel attribute to images that contains their categories?
- Can’t check if a post has thumbnail adding filter to get_post_metadata()
- Image rotation fails to regenerate custom sized thumbnail
- Publish/Update post is changing image links from file url to post url
- Disable auto-resizing of uploaded images, but only for certain filename
- Display images that are not in the content
- Can’t filter wp_get_attachment_link
- How to hide image-url if no attachment?
- What are the meta fields for an attachment?
- Different image using srcset function
- Auto delete content in specific folder inside media library
- How to update an image attachment’s alt text from a custom field when saving a post?
- Open image size links in a page instead of direct image link
- How Do I Prevent Featured Image Caption Displaying Above And Below Image
- Redirect to another page using contact form 7? [closed]
- append to existing parent theme function
- Get ID of first image attached to a post
- How to stop wordpress from injecting hard-coded style into image attachments with captions
- Add Element as a Filter to the_content
- Override the WordPress core function wp_referer_field
- Modify post filter to set custom number of posts per page and exclude child posts
- Make wp_link_pages() suitable for Twitter Bootstrap markup
- How can I add a filter for specific categories on functions.php?
- How to add custom JavaScript in functions?
- Setting a default text for excerpts of a particular category
- How to edit the Tags within the image file URLs?
- How would I go about replacing this function in my child theme located in inc/template-tags.php
- Retrieve a value from Yoast SEO to use to set a default twitter card image honoring overrides
- Can’t properly set the_title add_filter to show short_URL
- Add_filter when value is no variable?
- Control the srcset much more (not all sizes in it each time)
- Way to store featured image width and height in two separate variables?
- How to add_filter html template to middle of content
- (Woocommerce) Order by price when entering specific category
- Filter an WordPress Function in (general-template.php)
- srcset and custom field get_post_meta and wp_get_attachment_url
- Limit dimensions of “Full” size images
- Visual Composer creating own shortcodes with vc_map() to return simple Image
- Redefine function arguments before rendering
- How to edit classes in body tag?
- attachment page template? only show attachments for current post?
- Filter nav menu items HTML tags and wrap inner text with span
- How to get an attachment id from a filename
- Possible to hook into Media Library preview File column and use a custom image?
- How can I add a class to a nav li depending on URL?
- Modify gform_other_choice_value for specific form and specific field in Gravity Forms
- Combine embed_oembed_html and oembed_result
- login_headertitle is deprecated since version 5.2.0
- Set “woocommerce_is_purchasable” to false for specific “$product->is_stock_status”
- How to display the_archive_title() and the_archive_description() – “weird” interaction
- Filter to wp_list_authors
- Woocommerce image sizes missing from Appearance › Customize but not declared by theme
- How to add custom li item to wordpress menu
- How to properly set custom logo size?
- Add attribute only to first image of every post via functions.php
- Native gallery custom html output
- Need To Change WordPress Meta Tags… Includes wordpress shortcodes
- Need to convert image url to a Base_64 data url with wordpress function..
- How to Add Shortcode to html img code?
- The_content and Preg_replace in loaded Iframe [closed]
- get_terms (or tax_query) for term of current post?
- How to edit/replace Parent functions.php function in Child Theme to add “Walker” class
- Best way to disable sidebars on posts (only)?
- How to add a new image size and apply it to posts only?
- Functions Filter Question [closed]
- Is it possible to use add_filter in an included file in the child theme’s functions.php?
- Remove attachment page for audio media type only
- Insert Content Before div#main from the functions.php File
- Function to insert missing image size attributes into img tags
- Add Adsense code between job listings – wp job manager plugin
- Get Attachment Category Name
- Problem with images URL after filter applying
- Image Crop Not Working
- remove_action not working, even after changing priority [duplicate]
- remove/hide wp-editor
- Use existing image sizes for WooCommerce
- Problem in using Customizer
- Replace header image on all other pages but home – URL issue
- Insert a field with PREG_REPLACE – strange behaviour
- Add a class to post if it has been recently updated
- wp_get_attachment_image_src returns image on main domain, false on subdomain
- search form leads to 404
- Retrieve First Image Function
- Custom Image Size in Insert Media
- how to add_filter to non hook function
- Featured Image keeps cropping
- Prevent creating multiple image resizes in twentytwelve template
- I would like single.php to act just like index.php
- Conditional function for excluding first image from content, not working
- Using add_image_size in functions.php to get original uploaded file
- get_image_tag() html output : empty src attribute
- Changing the text of Upload/Insert on Posts and Pages Screen
- How d0 i get the number of attachments in the post
- Any adverse effects of adding apply_filters to a function?