Skip to content

A library to provide some help with abstracting away differences between WooCommerce versions

License

Notifications You must be signed in to change notification settings

DavidAnderson684/woocommerce-compat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

woocommerce-compat

A library to provide some help with abstracting away differences between WooCommerce versions.

WooCommerce changes its internals quite a lot. Most extension authors like their extensions to run across a range of versions. This library is code that I wrote to help with abstracting away some of the differences with my extensions (https://www.simbahosting.co.uk/s3/shop/).

It is not my personal aim to create a comprehensive library. If you wish it to contain something that it does not, then please consider contributing a pull request. I am happy to accept pull requests, but will not be coding compatibility methods that I have no personal use for. As such, you should expect this library to be incomplete, by design. It is being shared because it may be useful to someone; and perhaps people will contribute and increase its usefulness.

Requirements:

Use

  • Add davidanderson684/woocommerce-compat to your requirements in composer.json, and then run a "composer update". Or, just require_once('woocommerce-compat.php');

  • To see the currently available public methods, read the code!

Upgrading between versions

  • Any API-breaking changes will be accompanied by a bump in the class name, which includes the version number. Addition of new functionality will also result in a bump. We will try to stick to semantic versioning (http://semver.org).

Etcetera

About

A library to provide some help with abstracting away differences between WooCommerce versions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages