davidanderson684/woocommerce-compat

There is no license information available for the latest version (v0.3.2) of this package.

A library for abstracting away differences between WooCommerce versions

v0.3.2 2022-09-30 10:29 UTC

This package is auto-updated.

Last update: 2024-04-29 03:47:03 UTC


README

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