[Comment reposted as answer at request of OP author:]
Rather than deleting them, why don’t you add your post_type to the if() statement:
//Don't process anything but POSTS and PAGES (i.e. no revisions)
if( $data['post_type'] != 'post' && $data['post_type'] != 'page' && $data['post_type'] != 'foto' )
return $data;
As that comment in the code makes quite clear, without that statement, you’ll be processing all the revisions as well which probably isn’t what you want (considering that the plugin author disabled it).
(Also, “hacking” a plugin like this will only work until you need to update the plugin. Make sure to contact the plugin author and talk to them about supporting custom post types.)
Related Posts:
- Adding a Taxonomy Filter to Admin List for a Custom Post Type?
- How to get a variable number of posts per post type on the main loop?
- Getting Custom Post Type content from main-site of a Multisite
- How to get user-meta from Social Login registered users?
- Installing Facebook comment plug in without loosing all previous wordpress comments?
- Custom database or Custom Post Types?
- Top 3 posts in last week ordered by Facebook and Twitter share counts
- Prevent page slug from interfering with custom post type archive permalink?
- Add .html extension to custom post type taxonomies
- How to load a new template page according to a particular URL?
- How to get the custom page get_permalink?
- Themes VS Plugins [duplicate]
- Custom Post Type causes Page Not Found
- Facebook Like Button On Individual Comments
- Plugin “Meta Box”: Implementing meta boxes in custom post type
- Allow Facebook to preview posts before published
- Plugin allowing for artists, events and venues
- Disable Other Plugins on my Custom Post Type?
- custom taxonomy and custom post type url conflict
- RW Meta Box ,Problem setting post title
- Saving Custom Post types and fields to a custom table
- Building a store locator with google maps
- How to Add custom subtitle as og:title to Facebook Open Graph Meta Data in WordPress Themes?
- How to create user groups and allow custom posts and plugin modify/access to specific group?
- How can I create a custom shortcode that will return a custom post type by ID?
- get_post_type on post.php
- All of my custom posttypes are 404’ing
- What is generating my meta og:description?
- Updating the Drag-To-Share eXtended share URLs?
- Facebook-like Notification Plugin for WordPress Community Blog Sites?
- ‘No Results Found’ on single post for custom post type
- Making a Template for a CPT created by a plugin
- Restrict access to content in conjunction with facebook connect & google login
- How do post a Photo to Facebook when a post is published? [closed]
- ACF: post query, hide duplicate values [closed]
- Is there a social members only login plugin for WordPress? [closed]
- How to grab facebook page feed?
- WordPress custom taxonomy not showing
- Using ACF default value to autoincrement a number field
- How to Resize the Custom Post Images?
- Amazon.com intergration with WordPress?
- Adding custom meta boxes to specified custom post type
- How do I make reusable content blocks for header and footer when using WordPress headless with another front-end?
- posts from multiple post types in one slider
- How can I store data from custom fields to custom tables?
- Custom post type change excerpt more and excerpt length
- Use jQuery Datepicker code from plugin
- Order posts of a custom post type by the event date using FT Calendar Plugin
- Posts 2 Posts: Display custom types connected to the same other custom type but with another connection
- Facebook ‘Share’ and ‘Like’ on individual posts
- Creating teams of users in WordPress
- hardcoded wp pages/plugins problems
- Publishing a video from blog to youtube
- Including content from legacy app: via plugin or custom content?
- How display specific category post to specific users?
- Displaying the facebook profile picture in the WP-FB AutoConnect widget?
- Need to edit author permissions | custom taxonomy
- Import Recent Posts Only and Ignore old ones if exist
- Is it possible to pin a post in second position from top
- WordPress REST API: Query media files attached to a custom post type
- Save log for imports in WordPress database – options-table, custom post type or other place?
- How to get the custom field value using SQL query
- Allow webp use on website but disallow webp as featured image during post creation
- How to display emails as a post?
- Error in Fetching Custom Post Type parent Category URL (slug)
- How to display the category name in the tab and post inside the tab in WordPress?
- Want to build parent-child relationships between custom post types created with CPT UI
- Hidden permalink different from displayed permalink
- Add an action based on custom post meta field
- Merging new theme and plugins from development site to production
- Ultimate Members Default Post Layout problem
- how to convert frontpage.php to dynamic page?
- Creating custom “player-objects”
- Is it possible to customize a wordpress post from outside dashboard(Something like site.com/post-type/post/?e=post_id)?
- How to display the Facebook like count in WordPress theme [closed]
- Hide some portion on single.php base on author
- Displaying image from a repeatable group
- CPT-onomies CPT_TAXONOMY->get_terms extremely slow with 6K posts
- get recent 12 days post then random in wordpress
- What method should I use for a sidebar widget that reads latest posts?
- WordPress Custom post type won’t save properly
- Making a Custom Post Type Publish Loop
- WordPress User Frontend Editing Custom Fields
- Is a custom post type considred a plugin?
- Facebook like plugin with Multi Option-Needed [closed]
- Open graph issue on my theme
- WordPress show different custom post type
- True or False: Is an Apache error or PHP error the same as a WordPress error?
- How to export post tags from wordpress
- How to access the page without registering in wordpress
- CPT template is not being automatically used single post pages
- Set the title of a custom post automatically by using info from custom fields?
- public custom posts not showing in my wordpress plugin
- plugin translation *.mo file not getting loaded for custom post
- Create CPT on Ajax Call
- how to compare date meta value in jet smart filter Date query?
- My site has only one page, and users access my uploaded mp3 files from there – can I analyze access by song title?
- Tickera missing attendees – No attendees found
- How to check if the post exists in any of the categories?
- How to Display News in a Timeline with Headline, Category, and Time?