Got some assistance from another forum. It spurred some brainstorming at the office and we came up with a solution. Not sure if this is the best way to resolve it but it is working as expected. I added this code:
delete_post_meta($id, 'add_class', true);
just above the:
return $html;
at the end of the last function and everything is behaving properly. If there is a better solution, please let me know.
Related Posts:
- Why doesn’t WP_Image_Editor save images using the Filesystem API?
- Is there a plugin to make attaching images easier?
- Add control in image detail panel
- Managing Images for a WordPress Blog: Picasa or Flickr?
- Automatically wrap post image in div
- Custom image size not selectable in uploader
- Retrieving and Storing Images Linked from Other Domains on Local Server?
- Customizer image control default value showing in customizer but not on frontend
- Importing media medium setting image gallery / image attachments
- Extract & Display the REAL first image attached to a post – extend the_post_thumbnail()
- Add filename to attachment page url
- How To Add buttons to the toolbar which appears in TinyMce when you click over images
- Image Editor does not affect custom sizes!
- How to display post title & excerpt when mouse hovers on an image?
- Automatically add image caption with values from a post parent field?
- Is there a way to dynamically get to your uploads folder?
- Using Fullscreenr with a wordpress blog – weird bug
- Get Image from Media Library with the Title
- Get Custom Logo Alt Text
- Using custom image resizing script in a page
- Background image not appearing
- Best way to allow overwriting images shipped with the plugin?
- NextGEN Gallery – open all images on page in fancybox [closed]
- Featured Image If Else Condition
- If custom image header does not exist display text header
- Is there a possiblity to replace profile image gravatar with custom user images
- Custom theme – how to link the image without posting it
- Trying to set specific image dimensions and crop with ACF
- Customizing the gallery of the post correctly
- Personalized Gallery what are my options?
- adding fade on mouseover to images
- Lightbox not showing image caption
- WordPress 5: including larger thumbnail image sizes in srcset than I have set
- POST 429 Error when trying to place more than 20 images into post at once
- How to add the option to choose between sizes for featured image within post editor?
- Upload image without resizing but insert in post with resizing
- Bio comes up when the visitor clicks on a picture
- Adding images to anchors in the list created and fetched with wp_nav_menu
- Change default “Apply Changes To” radio option when editing images
- WP_Customize_Image_Control and selecting from library?
- featured images – custom links
- Get a different size of Image thumbnail while working with custom metabox
- Custom image sizes ignored in WP 3.5
- Edit image alignment in WordPress twentysixteen child theme on attachment page [closed]
- Set custom banner image size with wp_customize
- How to search for replacement titles and contents, excluding image URLs
- Custom Search on media files PDF images pages posts
- Hide text if not homepage
- Static Front Page settings – distinguish between Front page and Post page
- How to format text of site subtitle
- Lost password and back to blog in same line
- Undefined variable: user_id in get_user_meta
- Customizer JS API get value of customizer field
- WordPress broken after domain name change
- How to allow multiple thumbnail upload for Posts?
- Extract links from content
- How to create “custom page types” with different custom fields in them?
- Daylight Saving Time adjustment
- How to Restore Deleted Post Not in Trash
- How to Escape Custom Meta Data And Prefix Custom Meta ID
- Hide content and functions from specific user roles
- How To Style Links in Content Area With Tag Automatically?
- Translating (WooCommerce) placeholder text
- Display content of metabox if filled in
- User profile Pick a premade Design/theme
- Recent activity query WordPress
- Echo the Last Child Taxonomy only (not parents)?
- Troubles about insering a POST with a SQL query, post_status
- Embed Latest Track (Dynamic Updating) SoundCloud
- Get All Results From Other Users That Share The Same Custom User Meta As Current User
- Can we set a redirection with dynamic content in url?
- website is not loading home page (moving from one server to another server)
- How to remove (…) from the post tilte on homepage?
- Swap home page based on user role, Elementor layout breaking
- Customized Blog/Latest Posts Page
- How can I setup a development environment which auto refresh page when code have changed [closed]
- Password Protection issue
- Change Dashboard menu position?
- Get site ID from attachment url?
- how to edit or remove the dashboard footer message [duplicate]
- duplicate featured image functionality in custom meta box
- How to automatically pull an information from a form field onto an other page?
- How to create a custom menu for specific user
- How to submit form data in the same page in WordPress without reloading the page?
- User WordPress menu in custom page
- call get_header() function from different theme
- Custom display for homepage, tag and author pages
- Class .current-menu-item in custom menu Walker
- Add several fields from different tables to post, fields per post are in same row of table
- How to cdv from a custom CMS to WP
- Grouped custom taxonomy query
- Custom search by several options send on form not works
- Saving a post, content filtering and user levels
- Pagination is not working on custom query
- Issue with WordPress native theme customizer function and jquery ui tabs
- Complete Custom Style Part of Site
- add custom css on all page exept of one
- removing extra mobile menu from the header
- Admin new order email customization
- How do I get the URL section to show use a different domain in the WordPress Admin?