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 or page in WordPress, including posts based on custom post types.
Implements PHP’s __call magic method to provide a number of clever handlers for the unknown method call.
Implements PHP’s __get magic method to provide a number of clever handlers for the unknown method call.
Implements PHP’s __set magic method allowing properties of the post to be set via direct property assignment.
Returns the content for this post, either filtered or not.
Retrieves the post content as appropriate for a syndicated feed, by applying the appropriate WordPress filters to the raw content recorded.
Gets the publish date of this post.
Returns the depth of this post in the hierarchy, where 1 is the top level, 2 is the 2nd level, and so on.
Generate an excerpt for this post, or get the manual excerpt, depending on the args provided.
Retrieves a WOOF_Image object representing the featured image (also referred to as a post thumbnail in WordPress), if available.
Checks if this post has the specified category slug attached.
Checks if this post has any children.Note: this will only return meaningful results if the current object is based on a hierarchical post type.
Checks if this post has a Featured Image (also referred to as a post thumbnail in WordPress).
Checks if this post has a parent.Note: this will only return meaningful results if this post is based on an hierarchical post type.
Checks if this post has a status matching one or more given statuses.
Checks if this post has the specified post tag slug attached.
Checks if this post has the specified slug from a given taxonomy attached to it.Note: this currently only works for taxonomy terms attached via the built-in WordPress UI, it does not regard any values set in “Related Term” field types in MasterPress (this may change in future releases). .
An alias for the WOOF_Post::has_featured_image method, to check if this post has a Featured Image (which is also referred to as a post thumbnail in WordPress).
Checks if the type of the current post is hierarchical.
Returns the database ID of this post.
Checks if this post is currently in the trash.
Checks to see if this post is the same as another post.
Checks if this post has the given post type.
An alias for the WOOF_Post::is_a method, to checks if this post has the given post type.
Checks to see if this post is a child of another post (at any level in the hierarchy).
Checks if this post is the current active post being displayed.
Retrieves the value or a collection of values for the given meta_key.
Gets the modified date of this post.
Gets a full URL for this post, which includes the protocol and domain.
Returns the absolute URL to this post with “the_permalink_rss” filter applied. .
Retrieves the raw unfiltered content for the post.
Retrieves the slug for the current post.
An alias for the WOOF_Post::featured_image method, to retrieve a WOOF_Image object representing the featured image (which is also referred to as a post thumbnail in WordPress), if available.
Returns the title of this post.
Retrieves the title of the post, with the the_title_rss filter applied.
Retrieves the name of the post type for the current post.
Gets a URL for this post, which is root relative by default (excludes the domain and protocol).
Returns the root-relative URL of this field within its site in a multi-site environment.
Gets a url encoded URL for this post, which is root relative by default (excludes the domain and protocol), which can be used inside other URLs.
Implements PHP’s __set magic method allowing properties of the post to be set via direct property assignment.
Links this post with a taxonomy term, via the WordPress function wp_set_object_terms.
Bulk assign a number of properties of this post at the one time.Note: this method does not update the database, you will need to call the method WOOF_Post::update after using this method.
Deletes the post behind this object in the database, via the WordPress function wp_delete_post.
Updates the status of this post to “publish”, via the WordPress function wp_publish_post.
Detaches the specified term from the given taxonomy from this post.
Updates the database with any changes made to this post.
Retrieves HTML for a link (anchor) tag pointing to the post, using the title of the post as the link text by default (a very common requirement).
A preset on the WOOF_Post::link to retrieve an HTML link containing a root_relative url (removes the domain and protocol) by default.
A preset on the WOOF_Post::link to retrieve an HTML link containing a root_relative url (removes the domain and protocol) by default.
Retrieves a collection of ancestors for this post from lowest to highest in the hierarchy.
Retrieves the immediate child objects of this post.This method uses get_posts to retrieve the children, and you can further clarify this query with the args parameter (the parent parameter will be enforced to actually retrieve the children).
Deletes the post behind this object in the database, via the WordPress function wp_delete_post.
Retrieves the immediate parent object of this post.Note: this will only return meaningful results if the post is based on a hierarchical type.
Updates the status of this post to “publish”, via the WordPress function wp_publish_post.
Retrieves the sibling objects of this post, that is, objects that exist at the same level in the hierarchy as the current object.Note: this will only return results if the post is based on a hierarchical post type.
Retrieves the top level ancestor of this post.Note: this will only return a meaningful result if this post is based on a hierarchical post type.
Updates the database with any changes made to this post.
Retrieves a collection of attachment objects for this post and matching the given query arguments.Note: The args parameter for this method is a preset for WordPress’ get_posts function that is forced to query for the attachment post_type.
Retrieves a collection of WOOF_Attachment objects representing the image attachments for this post.Note: The args parameter for this method is a preset for WordPress’ get_posts function that is forced to query for the attachment post_type.
Retrieves the immediate child objects of this post.This method uses get_posts to retrieve the children, and you can further clarify this query with the args parameter (the parent parameter will be enforced to actually retrieve the children).
Returns the depth of this post in the hierarchy, where 1 is the top level, 2 is the 2nd level, and so on.
Checks if this post has any children.Note: this will only return meaningful results if the current object is based on a hierarchical post type.
Checks if this post has a parent.Note: this will only return meaningful results if this post is based on an hierarchical post type.
Gets the next post in the set of siblings for this post as defined by the query in the $args parameter.
Retrieves the immediate parent object of this post.Note: this will only return meaningful results if the post is based on a hierarchical type.
Gets the previous post in the set of siblings for this post as defined by the query in the $args parameter.
Retrieves a collection of WOOF_Comment objects representing the comments for this post.
Returns the integer count of comments for this post.This is simply an alternative syntax for WordPress’ get_comments_number function.
Returns HTML for a link to the comments for this post.
Returns a formatted string representing the count of comments for this post.Note: All format strings are run through sprintf with the current comment count.
Checks if comments are open for this post.
Gets the comments URL for this post.
Links this post with a taxonomy term, via the WordPress function wp_set_object_terms.
Returns a collection of WOOF_Term objects representing the categories attached to this post.
Checks if this post has the specified category slug attached.
Checks if this post has the specified slug from a given taxonomy attached to it.Note: this currently only works for taxonomy terms attached via the built-in WordPress UI, it does not regard any values set in “Related Term” field types in MasterPress (this may change in future releases). .
An alias for the WOOF_Post::has_tag method to check if this post has the specified post tag slug attached.
Detaches the specified term from the given taxonomy from this post.
An alias for the WOOF_Post::has_tag method to check if this post has the specified post tag slug attached.
Retrieves a collection of WOOF_Term objects representing the terms attached to this post for the given taxonomy.
Retrieves a WOOF_PostType object repesenting the post type of this post, whether this is a custom post type or built-in.
Retrieves a WOOF_PostType object repesenting the post type of this post, whether this is a custom post type or built-in.
Attempts to instantiate a class representing this post for the given class name and arguments, and if successful returns that class.
A utility function to apply the WordPress excerpt_length and excerpt_more filters to create an excerpt from a given string.Note: this method is used internally by the WOOF_Post::excerpt. .
Returns the root-relative URL of this field within its site in a multi-site environment.
Returns a woof-postcol object to provide an API for the column expressions used in the “Columns” section of the Create / Edit Post Type screen in MasterPress. This is accessed through a “col” property in the expression, as shown below.
An internal function to retrieve the default template file name in the WordPress template hierarchy for this post. .
A utility function to apply the WordPress excerpt_length and excerpt_more filters to create an excerpt from a given string.Note: this method is used internally by the WOOF_Post::excerpt. .
Implements PHP’s __call magic method to provide a number of clever handlers for the unknown method call.
Implements PHP’s __get magic method to provide a number of clever handlers for the unknown method call.
Implements PHP’s __set magic method allowing properties of the post to be set via direct property assignment.
Links this post with a taxonomy term, via the WordPress function wp_set_object_terms.
Retrieves a collection of ancestors for this post from lowest to highest in the hierarchy.
Bulk assign a number of properties of this post at the one time.Note: this method does not update the database, you will need to call the method WOOF_Post::update after using this method.
Retrieves a collection of attachment objects for this post and matching the given query arguments.Note: The args parameter for this method is a preset for WordPress’ get_posts function that is forced to query for the attachment post_type.
Returns a collection of WOOF_Term objects representing the categories attached to this post.
Retrieves the immediate child objects of this post.This method uses get_posts to retrieve the children, and you can further clarify this query with the args parameter (the parent parameter will be enforced to actually retrieve the children).
Returns a woof-postcol object to provide an API for the column expressions used in the “Columns” section of the Create / Edit Post Type screen in MasterPress. This is accessed through a “col” property in the expression, as shown below.
Retrieves a collection of WOOF_Comment objects representing the comments for this post.
Returns the integer count of comments for this post.This is simply an alternative syntax for WordPress’ get_comments_number function.
Returns HTML for a link to the comments for this post.
Returns a formatted string representing the count of comments for this post.Note: All format strings are run through sprintf with the current comment count.
Checks if comments are open for this post.
Gets the comments URL for this post.
Returns the content for this post, either filtered or not.
Retrieves the post content as appropriate for a syndicated feed, by applying the appropriate WordPress filters to the raw content recorded.
Gets the publish date of this post.
An internal function to retrieve the default template file name in the WordPress template hierarchy for this post. .
Deletes the post behind this object in the database, via the WordPress function wp_delete_post.
Returns the depth of this post in the hierarchy, where 1 is the top level, 2 is the 2nd level, and so on.
Retrieves the HTML for the link to edit this post in WordPress, using the title of the post as the default link text.Note: this function will check if the current user can edit this post, and if not will return an empty string.
Retrieves the URL for editing this post in WordPress.Note: this method does not check if the current user is allowed to edit the post, so use with care (WordPress will intercept any attempts to edit something that’s now allowed, but it leads to a bad user experience at worst).
Generate an excerpt for this post, or get the manual excerpt, depending on the args provided.
Retrieves a WOOF_Image object representing the featured image (also referred to as a post thumbnail in WordPress), if available.
Checks if this post has the specified category slug attached.
Checks if this post has any children.Note: this will only return meaningful results if the current object is based on a hierarchical post type.
Checks if this post has a Featured Image (also referred to as a post thumbnail in WordPress).
Checks if this post has a parent.Note: this will only return meaningful results if this post is based on an hierarchical post type.
Checks if this post has a status matching one or more given statuses.
Checks if this post has the specified post tag slug attached.
Checks if this post has the specified slug from a given taxonomy attached to it.Note: this currently only works for taxonomy terms attached via the built-in WordPress UI, it does not regard any values set in “Related Term” field types in MasterPress (this may change in future releases). .
An alias for the WOOF_Post::has_featured_image method, to check if this post has a Featured Image (which is also referred to as a post thumbnail in WordPress).
Checks if the type of the current post is hierarchical.
Returns the database ID of this post.
Retrieves a collection of WOOF_Attachment objects representing the image attachments for this post.Note: The args parameter for this method is a preset for WordPress’ get_posts function that is forced to query for the attachment post_type.
Checks if this post is currently in the trash.
Checks to see if this post is the same as another post.
Checks if this post has the given post type.
An alias for the WOOF_Post::is_a method, to checks if this post has the given post type.
Checks to see if this post is a child of another post (at any level in the hierarchy).
Checks if this post is the current active post being displayed.
An alias for the WOOF_Post::has_tag method to check if this post has the specified post tag slug attached.
Retrieves HTML for a link (anchor) tag pointing to the post, using the title of the post as the link text by default (a very common requirement).
Retrieves the value or a collection of values for the given meta_key.
Gets the modified date of this post.
Gets the next post in the set of siblings for this post as defined by the query in the $args parameter.
Retrieves the immediate parent object of this post.Note: this will only return meaningful results if the post is based on a hierarchical type.
Gets a full URL for this post, which includes the protocol and domain.
Returns the absolute URL to this post with “the_permalink_rss” filter applied. .
Retrieves a WOOF_PostType object repesenting the post type of this post, whether this is a custom post type or built-in.
Gets the previous post in the set of siblings for this post as defined by the query in the $args parameter.
Updates the status of this post to “publish”, via the WordPress function wp_publish_post.
Retrieves the raw unfiltered content for the post.
A preset on the WOOF_Post::link to retrieve an HTML link containing a root_relative url (removes the domain and protocol) by default.
Detaches the specified term from the given taxonomy from this post.
Attempts to instantiate a class representing this post for the given class name and arguments, and if successful returns that class.
A preset on the WOOF_Post::link to retrieve an HTML link containing a root_relative url (removes the domain and protocol) by default.
Retrieves the sibling objects of this post, that is, objects that exist at the same level in the hierarchy as the current object.Note: this will only return results if the post is based on a hierarchical post type.
Retrieves the slug for the current post.
An alias for the WOOF_Post::has_tag method to check if this post has the specified post tag slug attached.
Returns the file name of the current template, sans-extension, if a custom template is attached.Note: this function does not exhaustively cover the possibilities in the WordPress Template Hierarchy, it is currently used only in more specific cases in MasterPress.
Retrieves a collection of WOOF_Term objects representing the terms attached to this post for the given taxonomy.
An alias for the WOOF_Post::featured_image method, to retrieve a WOOF_Image object representing the featured image (which is also referred to as a post thumbnail in WordPress), if available.
Returns the title of this post.
Retrieves the title of the post, with the the_title_rss filter applied.
Retrieves the top level ancestor of this post.Note: this will only return a meaningful result if this post is based on a hierarchical post type.
A utility function to apply the WordPress excerpt_length and excerpt_more filters to create an excerpt from a given string.Note: this method is used internally by the WOOF_Post::excerpt. .
Retrieves a WOOF_PostType object repesenting the post type of this post, whether this is a custom post type or built-in.
Retrieves the name of the post type for the current post.
Updates the database with any changes made to this post.
Gets a URL for this post, which is root relative by default (excludes the domain and protocol).
Returns the root-relative URL of this field within its site in a multi-site environment.
Gets a url encoded URL for this post, which is root relative by default (excludes the domain and protocol), which can be used inside other URLs.
View method list from the base class WOOF_Wrap.
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.