Optimize Listing Type Revisions for MyListing

Building better MyListing websites. One guide at a time.

Table of Contents

Overview

Our Optimize Listing Type Revisions for MyListing guide will show you how to further limit database bloat, by reducing the number of Listing Type revisions that are stored.

Listing Type Revisions

Out of the box, ML will store up to 15 versions of each Listing Type. Every time you click “update” on your Listing Type, another revision is added.

This is an awesome feature. But, for those that have an interest in keeping their database just a bit further in check…this is for you. Also, you can always export a revision at any time and name the export file to something meaningful.

For those that are actively developing your site, you may want to save this until right before launch altogether or configure enough revisions to go back a few.

Our recommendation is to set a revision limit of 5.

Note: Listing Type revisions are different from Post Revisions, which can normally be limited or cleaned up using code snippets or plugins.

Limit the Listing Type Revisions

  1. Within your Child Theme (/wp-content/themes/my-listing-child/), create the following folder structure: /includes/src/listing-types.
  2. Copy the revisions.php file from the parent theme (/wp-content/themes/my-listing/includes/src/listing-types/) to the new /wp-content/themes/my-listing-child/includes/src/listing-types/ directory.
  3. Edit the revisions.php file and edit the “15 value” from line 20 (shown below) as desired.

($this->max_revisioun_count = apply_filters( ‘mylisting/types/max-revision-count’, 15 );)

MyListing Theme Video Tutorial

Play Video

WooCommerce Subscriptions Ready

The latest version of the WooCommerce Subscriptions plugin is included (unlicensed) and once you have a Starter Site in hand, you can easily put in your own pricing, package features, graphics, etc.

Should you not wish to use WooCommerce Subscriptions, you can simply turn the Listing Subscription packages into standard MyListing packages in just a few clicks and be on your way.

  • Custom WooCommerce Endpoint Design
  • WooCoommerce Subscriptions Setup
  • Listing Subscription Packages
  • Listing Subscription Switching
  • Stripe Payment Gateway Plugin
  •  and more…

Note: The latest version of the WooCommerce Subscriptions plugin is included, but you need to purchase your own license or sign up for a qualifying MyListing Website Care plan if you wish to receive future plugin updates and support.

Premium Assets

Get licensed, premium plugins, valued at over $600 in the first year alone, making a Starter Site investment a no-brainer.

You will get licensed copies of all the plugins listed below, with the exception of the WooCommerce Subscriptions and WooCommerce Product Vendors, and the licenses are yours to keep, for as long as the plugins remain on your website.

  • Admin 2020 ($39)
  • Crocoblock Suite ($130)
  • Elementor Pro ($49)
  • Perfmatters ($25)
  • Permalink Manager Pro ($45)
  • SEOPress Pro ($39)
  • WooCommerce Product Vendors ($79) 
  • WooCommerce Subscriptions ($199)
  • WP Rocket ($49)