MasterPress 1.2.8 is now available
It was brought to our attention that MasterPress would give a tonne of warnings and deprecation notices when used with PHP 7.4 – this update addresses those.
Represents a single Taxonomy (custom or built-in) within WordPress, containing many powerful methods for working with the terms within each taxonomy.
An alias of the WOOF_Taxonomy::plural_label method to retrieve the plural-form of the taxonomy name.
Retrieves the plural-form of the taxonomy name.
Retrieves the singular form label for this taxonomy.
An alias of the WOOF_Taxonomy::plural_label method to retrieve the plural-form of the taxonomy name.
Creates a new WOOF_Term object in this taxonomy, which can either have properties set by passing properties in the $args parameter, or setting them manually later in code (via the use of the magic method ---set).
Retrieves a term object in this taxonomy by first trying to find a term with the specified $slug, or creating a new term with the specified slug if not found.This method could be very useful in some kind of import process, where you might want to create or update terms from another data source (such as a JSON API) without needing to worry about checking for existence first (see example).
A more readable synonym for the WOOF_Taxonomy::insert to create a term in this taxonomy and immediately update the database.
Creates a new WOOF_Term object in this taxonomy, which can either have properties set by passing properties in the $args parameter, or setting them manually later in code (via the use of the magic method ---set).
Retrieves a term object in this taxonomy by first trying to find a term with the specified $slug, or creating a new term with the specified slug if not found.This method could be very useful in some kind of import process, where you might want to create or update terms from another data source (such as a JSON API) without needing to worry about checking for existence first (see example).
Flattens a hierarchical term structure into a flat collection of terms.This method uses get_terms to retrieve the terms, so you can further clarify the query used with the args parameter.
A preset on the method WOOF::terms to retrieve a collection of terms for this taxonomy which are non-empty, that is, currently in use by one or more posts.
A preset on the method WOOF::terms to retrieve a collection of terms for this taxonomy which are both non-empty (in use by one or more posts) and at the top level of the taxonomy hierarchy.This method uses get_terms to retrieve the terms, so you can further clarify this query with the args parameter.
Retrieve a term object in this taxonomy for the given $id.Note that this method forwards on to the WOOF::term method to retrieve the term, so the $id parameter can be a slug, ID, or even a WOOF_Term object itself (which will simply return this object).
A preset on the method WOOF::terms to retrieve a collection of terms for this taxonomy.This method uses get_terms to retrieve the terms, so you can further clarify this query with the args parameter.
A preset on the method WOOF::terms to retrieve a collection of terms for this taxonomy which are at the top level of the taxonomy hierarchy.This method uses get_terms to retrieve the terms, so you can further clarify this query with the args parameter.
An alias for the method WOOF_Taxonomy::top_level_terms and a preset on the method WOOF::terms to retrieve a collection of terms for this taxonomy which are at the top level of the taxonomy hierarchy.This method uses get_terms to retrieve the terms, so you can further clarify this query with the args parameter.
Retrieves a collection of WOOF_PostType objects representing the post types attached to this taxonomy.
An alias of the WOOF_Taxonomy::post_types method to retrieve a collection of WOOF_PostType objects representing the post types attached to this taxonomy.
Allows the post type to be directly iterated over, by returning all posts under this post type as items for the collection.
Allows the taxonomy to be directly iterated over, by returning all terms under this taxonomy as items for the collection.
Allows the post type to be directly iterated over, by returning all posts under this post type as items for the collection.
Returns the custom capability key in use for a given standard capability key.
Creates a new WOOF_Term object in this taxonomy, which can either have properties set by passing properties in the $args parameter, or setting them manually later in code (via the use of the magic method ---set).
Retrieves a term object in this taxonomy by first trying to find a term with the specified $slug, or creating a new term with the specified slug if not found.This method could be very useful in some kind of import process, where you might want to create or update terms from another data source (such as a JSON API) without needing to worry about checking for existence first (see example).
Flattens a hierarchical term structure into a flat collection of terms.This method uses get_terms to retrieve the terms, so you can further clarify the query used with the args parameter.
A more readable synonym for the WOOF_Taxonomy::insert to create a term in this taxonomy and immediately update the database.
Allows the taxonomy to be directly iterated over, by returning all terms under this taxonomy as items for the collection.
An alias of the WOOF_Taxonomy::plural_label method to retrieve the plural-form of the taxonomy name.
A preset on the method WOOF::terms to retrieve a collection of terms for this taxonomy which are non-empty, that is, currently in use by one or more posts.
A preset on the method WOOF::terms to retrieve a collection of terms for this taxonomy which are both non-empty (in use by one or more posts) and at the top level of the taxonomy hierarchy.This method uses get_terms to retrieve the terms, so you can further clarify this query with the args parameter.
Retrieves the plural-form of the taxonomy name.
Retrieves a collection of WOOF_PostType objects representing the post types attached to this taxonomy.
Retrieves the singular form label for this taxonomy.
Retrieve a term object in this taxonomy for the given $id.Note that this method forwards on to the WOOF::term method to retrieve the term, so the $id parameter can be a slug, ID, or even a WOOF_Term object itself (which will simply return this object).
A preset on the method WOOF::terms to retrieve a collection of terms for this taxonomy.This method uses get_terms to retrieve the terms, so you can further clarify this query with the args parameter.
An alias of the WOOF_Taxonomy::plural_label method to retrieve the plural-form of the taxonomy name.
A preset on the method WOOF::terms to retrieve a collection of terms for this taxonomy which are at the top level of the taxonomy hierarchy.This method uses get_terms to retrieve the terms, so you can further clarify this query with the args parameter.
An alias for the method WOOF_Taxonomy::top_level_terms and a preset on the method WOOF::terms to retrieve a collection of terms for this taxonomy which are at the top level of the taxonomy hierarchy.This method uses get_terms to retrieve the terms, so you can further clarify this query with the args parameter.
An alias of the WOOF_Taxonomy::post_types method to retrieve a collection of WOOF_PostType objects representing the post types attached to this taxonomy.
View method list from the base class WOOF_Collection.
It was brought to our attention that MasterPress would give a tonne of warnings and deprecation notices when used with PHP 7.4 – this update addresses those.
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 2021 © Three AM All rights reserved.