Packages: WOOF, MEOW and Field Types

The MasterPress API can be regarded as being made up of 3 packages of classes:

  • WOOF (WordPress Object-Oriented Framework)
    These classes represent objects that exist in the WordPress core, including posts, terms, users, post types, taxonomies, roles,and images. These clases offer a complete object-oriented alternative to the standard template tag functions available in WordPress. All class names in the WOOF package are prefixed with WOOF_.
  • MEOW (MasterPress Extensions Of WOOF)
    These classes represent objects that MasterPress brings to WordPress, such as fields and field sets, while also including classes which extend the core classes in WOOF to provide field and field-set related functionality.  All class names in the WOOF package are prefixed with MEOW_.
  • Field Types
    These classes are also specific to MasterPress , but are concerned with providing APIs and User-Interface implementations for the field types available in MasterPress . All class names in the Field Types package are prefixed with MPFT_ which stands for MasterPress Field Type.

Please refer to the Class Reference landing page for a complete list of classes available in each package.

Why are WOOF and MEOW separate?

You may be wondering why the classes in MEOW extend those in the WOOF package; why not just make one class for each of these objects?

The main reason for this is that it will allow us to release the WOOF package as a separate plug-in for WordPress, or even as a bundle-in for WordPress themes that target the API. By keeping all MasterPress-specific API features out of the WOOF classes, this becomes a lot easier to do. (A separate plug-in is not yet available – it is currently planned for future release).

It also makes a lot of sense from a design standpoint – while the MasterPress product brings a lot of new capabilities to WordPress, a lot of the plug-in makes existing features more accessible, and the API package structure reflects this very precisely.

Latest From the Blog

MasterPress 1.4.1 is now available

27th May 2024

This update addresses backwards compatibility issues that were introduced in the previous update. There were some edge cases where PHP 7 had issues and it didn’t work at all on PHP 5.6. We have now changed it so that the PHP 8 compatibility changes will now only affect PHP 8 and will be more thorough… 

Plugin Requirements

MasterPress requires a minimum of WordPress version 4.9, MySQL 5.6, and PHP version 5.6.20.

We also recommend that PHP is configured to use a memory limit of 64MB per request (128MB may be required for sites with higher complexity).

This plug-in is not compatible with the hosted service.

Three AM