[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:
- Tips for using WordPress as a CMS? [closed]
- Redesigning Custom Post Type “Add New” page
- How Do I Use The WordPress Plugin Posts 2 Posts by Scribu?
- Creating a default Custom Post Template that a Theme can override
- Jetpack plugin (ShareDaddy): Prevent share buttons showing on custom post types?
- Getting Custom Post Type content from main-site of a Multisite
- How to make a list of companies’ information and display them to user, using custom post types and a custom taxonomy?
- Custom comment type maybe?
- Twillio How To Send SMS for Custom Post Type
- Seriously stuck with some custom meta box/plugin stuff
- Enable comments for post with comments meta box removed
- [Plugin: Posts 2 Posts] reciprocal connections
- How to Build a Movie Library in WordPress 3.x
- How do I get multiple pages by title?
- I need to add a custom “cover” to every new post — plugin or custom setup?
- Shortcode in AJAX popup
- How to get images from EDD post?
- wordpress reusable content blocks
- Allow users mark posts as “complete”?
- Is there a way to order posts and custom post types as one group?
- Conditionally add apt. Open Graph meta data to different pages on WordPress site
- dynamically generating plugin syntax
- Duplicate posts when posting nulls in records in phpMyAdmin [closed]
- Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu
- Accessing post’s meta data based on user’s click of a post
- Exclude post by custom meta with pre_get_posts
- Is there a way to share your Facebook Page’s stream on a WordPress page or post?
- get_post_type() and WP_QUERY issue
- List taxonomy terms for post as checkboxes
- Custom post type – no layout section of Document tab, and no author choice
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- Keep a post copy when this one is updated – issue
- how to add a button next to the wordpress view button?
- Want to take Facebook Page posts and turn them into blog post
- How do post a Photo to Facebook when a post is published? [closed]
- How to add FB like + share AND also other Social Buttons on ALL pages and posts?
- ACF: post query, hide duplicate values [closed]
- How to grab facebook page feed?
- Socialite WP plugin, unable to obtain API keys from FB
- 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?
- Trying to add a page template for my custom post type from a plugin, but it will not display in the template dropdown unless file is in theme
- 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
- WP-API Custom Post Type json_no_route
- How can I store data from custom fields to custom tables?
- Plugin generated unexpected output – No PHP errors
- 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
- 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?
- Create category for each user
- 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
- custom post type plugin error [closed]
- Add an action based on custom post meta field
- 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]
- Calling an custom field from theme option at the frontend
- 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?
- Plugin used only on some pages – not widget
- WordPress Custom post type won’t save properly
- Making a Custom Post Type Publish Loop
- Publishing videos and images from blog to facebook
- WordPress User Frontend Editing Custom Fields
- Is a custom post type considred a plugin?
- Remove base from the custom post type URL [duplicate]
- 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?
- Filter custom post type returned from REST api
- Failed to update a post when I add a taxonomy to it
- How to make content as required in custom post type?