Did you get anywhere with this? I’ve just written a plugin that does exactly this job. It’s basically a cron job that scans all your posts & pages to create an internal index of which images are where. It then synchronises your Media Library alt text with the images in your content. It’s based on the code from this tutorial: https://wp-tutorials.tech/refine-wordpress/filter-for-images-missing-alt-text/ but the plugin builds on it to add the synchronisation stuff. There’s al link to the plugin from the tutorial page.
But… it all comes down to page-builder integration. The plugin currently only has Gutenberg and Classic-Edit integration at the moment. I need to add Elementor/Divi/etc integrations… a bit of a pain, but it has to be done.
Related Posts:
- How do I change/modify the_post_thumbnail(); html output?
- How to add a class to the attachment images
- How to draw media details for Isotope gallery using Photoswipe
- How to register images uploaded via FTP in media library?
- Add custom image sizes to media uploader
- Using wp_get_image_editor in a standalone script
- Change logo based on incoming domain
- Convert all images to PNG on file upload
- How to get specific image in media library with php
- Set the background to a default image if there isn’t a specified “featured image”
- How to control WordPress image metadata (using Imagick)?
- Scrape external webpage for first image and add it to new post
- How to add no follow to specific links?
- Else/If Statement to Display Photo Descriptions
- Image rotation issue (horizontal picture uploading as vertical) — Exif issue?
- Adding a ‘style=’ bit to image_send_to_editor output
- Convert all uploaded PNG files to PNG-8 format
- Workaround for og:image unsupported webp image type, Yoast SEO?
- not outputting medium size image URL
- How to use data URL in WordPress?
- Add missing alt tag to featured images for “storefront” theme
- How do I get the featured post to share on Social Media and show on Individual Post pages?
- Retrieving specific images from Media Library
- How do I routinely extract the thumbnail of the most recent post?
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- My customizer’s setting doesn’t set to the default and needed to click the control’s “Default” button before it’ll be set
- Save the outputted image into the Media Library, with a different filename and extension
- add if statement to the featured image
- Remove default Image Sizes
- Understanding responsive imagery
- WooCommerce: write featured image dimensions to custom fields in product’
- Generate and upload screenshot as featured image for user-submitted post
- Error Warning: Declaration of description_walker::start_el after PHP upgrade [duplicate]
- Mega Menu Walker
- Displaying Logged-In User Name in WordPress Menu
- Autoloading in Child Theme
- Change the filename format of saved featured images
- Rename image uploads replacing “width” and “height” in filename with “medium”, “large”, “small”
- Use Filename for Alt and Title Tags
- add_rewrite_rule with bottom priority doesn’t handle the WordPress pages
- Successful or Error Message after running mysql code in functions.php
- How can one utilize a variable as a callback function name for add_settings_field
- Auto crop images in WordPress
- Count the number of times the search form template gets included on a page
- PHP code inside shortcodes
- Adding Default Settings to Theme My Login plugin
- Remove meta description on certain pages
- Image media upload metabox
- Woocommerce related product text
- esc_html_e() is not translating string in wordpress [closed]
- WordPress Gravatar filter is removing my custom attributes
- Incorrect amount of posts returned when filtering related Woo products by custom taxonomy
- Limit 1 global comment per minute
- “imagejpeg” function is not working in wordpress
- Remove echo from shortcode
- Copyright info change – Corporate Plus Theme PHP [closed]
- Inject class in body when particular page template is used
- Echo a function inside a function
- Use WordPress function in php file
- How to list posts from a plugin taxonomy?
- Category title output before opening title tag
- wp_force_remove_style’ not found
- Pagination on Custom Post
- Theme not calling Jquery properly
- WordPress redirect redirecting too many times or not at all
- how to save checkbox data for custom setting?
- How to keep the capability of users and disable Gutenberg editor in WordPress?
- Enqueing External JS on the remote server JS
- Need to Modify a WordPress Shortcode with another wordpress shortcode
- How to add aria role and schema markup to custom walker container
- Remove submenu item from list
- Customize field names in backend profile edit page through function.php [duplicate]
- Insert content into head tag with function
- User filter posts by year
- bp-custom.php is not working on a WordPress multisite environment. how to fix it?
- Getting text from custom field from customizer
- Adding wp users ID into a link address from a DIVI modul
- Execute function only for specific user roles
- Best way to use variables in multiple functions?
- Can an AJAX callback function access a PHP variable which was defined during initial page load?
- Cannot fetch posts with certain ‘product_cat’. WP_Query is empty
- Detect what link user clicks and Redirect to a specific page for logged in users only
- Offset with ajax load more posts duplicates
- How fix error in the WordPress loop?
- Use WP_Query Data In Cookie
- syntax error unexpected ‘}’ at 364 line
- get_post_meta no longer working
- Highlight posts currently being edited on multiple editor site?
- Showing all post from all post type in admin backstage
- Pagination not displaying
- upload images on front by user using form
- Setting WooCommerce currency programmatically
- Masking external links with internal link for member-only
- Adding slides to an existing carousel manually
- Shortcode to include PHP file, pass various parameters to include?
- Why can’t I include echo inside a variable? [closed]
- Assign new post author IF another user in custom field on post transition
- Create and publish a new post every Monday, listing the post titles and links to the posts published during the previous week
- Dynamic Email Handler with ‘header (“Location: …’
- Custom plugin doesn’t show in admin menu – when code added, displays an empty page