-
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 WOOF_User object representing the author of this post.
-
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.
-
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.
-
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.
-
Retrieves a collection of WOOF_Post objects that are related to this post by their taxonomy terms, configurable via an arguments parameter. .
-
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 a collection of WOOF_Term objects representing the tags attached to this post.
-
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 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.