MasterPress 1.3.1 is now available
MasterPress 1.3.1 is a compatibility release for PHP 8 and WordPress 5.7. It still remains backwards compatible with older PHP versions.
Represents a single post in WordPress, extending the WOOF_Post class to include support for MasterPress field sets and incoming post relations.
Overrides the --call method to also look for incoming posts of type “post_type_name” when attempting to call a method of the form “incoming_[post_type_name_plural_form]” or the first incoming post of “post_type_name” when trying to call “incoming_[post_type_name]”.
Implements the PHP magic method __get, called when an unknown property is accessed.
A synonym for the MEOW_Post::field method to retrieve a field for this post.
Retrieves a field in this post with the given name.
Checks for the existence of a set or a field in this post, and that there are entries or values entered for either.
Checks for the existence of a field and that the field has content entered for this post.
Checks for the existence of a field set of a given name in this post, and if the set has entries in the case of a multi-item set.
A synonym for the MEOW_Post::set to retrieve a field set for this post with the given name.
Retrieves a field set for this post with the given name.
Retrieves the names of all of the available field sets currently available to this object.
Extends the WOOF_Post::update method for updating post data, to also update any modified MasterPress custom field data.Important Note: If you have just created a new post via the WOOF_PostType::create method and you have also updated custom field data, you must use this method to commit the field data if you haven’t already committed the new post to the database, rather than any of the methods MEOW_Field::update, MEOW_FieldSet::update, or MEOW_FieldSetCollection::update. The reason for this is that the new post will not yet have an ID to attach metadata to, and this method contains special handling to account for this case (it will update the post first before the custom fields). .
Retrieves all posts that are related to this post via the Related Post field type.
Retrieves all posts that are related to the this post by means of the Related Post field type, while also affecting the main query loop in WordPress.
Retrieves all terms that are related to this post via of the Related Term field type.
Overrides the WOOF_Post::terms method to allow the regard field terms setting to be recognised, thus allowing terms setup in Related Terms fields in MasterPress to be included in the results.
Retrieves all users that are related to this post via of the Related User field type.
Overrides the --call method to also look for incoming posts of type “post_type_name” when attempting to call a method of the form “incoming_[post_type_name_plural_form]” or the first incoming post of “post_type_name” when trying to call “incoming_[post_type_name]”.
Implements the PHP magic method __get, called when an unknown property is accessed.
An internal method to check if this represents a post that actually exists.
A synonym for the MEOW_Post::field method to retrieve a field for this post.
Retrieves a field in this post with the given name.
Checks for the existence of a set or a field in this post, and that there are entries or values entered for either.
Checks for the existence of a field and that the field has content entered for this post.
Checks for the existence of a field set of a given name in this post, and if the set has entries in the case of a multi-item set.
Retrieves all posts that are related to this post via the Related Post field type.
Retrieves all terms that are related to this post via of the Related Term field type.
Retrieves all users that are related to this post via of the Related User field type.
Retrieves all posts that are related to the this post by means of the Related Post field type, while also affecting the main query loop in WordPress.
A synonym for the MEOW_Post::set to retrieve a field set for this post with the given name.
Retrieves a field set for this post with the given name.
Retrieves the names of all of the available field sets currently available to this object.
Overrides the WOOF_Post::terms method to allow the regard field terms setting to be recognised, thus allowing terms setup in Related Terms fields in MasterPress to be included in the results.
Extends the WOOF_Post::update method for updating post data, to also update any modified MasterPress custom field data.Important Note: If you have just created a new post via the WOOF_PostType::create method and you have also updated custom field data, you must use this method to commit the field data if you haven’t already committed the new post to the database, rather than any of the methods MEOW_Field::update, MEOW_FieldSet::update, or MEOW_FieldSetCollection::update. The reason for this is that the new post will not yet have an ID to attach metadata to, and this method contains special handling to account for this case (it will update the post first before the custom fields). .
View method list from the base class WOOF_Post.
MasterPress 1.3.1 is a compatibility release for PHP 8 and WordPress 5.7. It still remains backwards compatible with older PHP versions.
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 WordPress.com hosted service.
Copyright 2022 © Three AM All rights reserved.