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.
The UI and API implementation for the Related Term field type, augmented by Select2.
Return the count of terms selected in the UI. Since this overrides count the number of terms can also be retrieved by calling count directly on the field object.
Overrides the MPFT::is method to allow the first or only term setup in this field to be checked for equality.
Retrieves the first or only term selected in the UI.
Retrieves a collection of the terms selected in the field UI. .
Overrides the MPFT::value_for_set method to allow Related Term fields to be assigned a value in a number of different formats. A single term slug, name, ID, or MEOW_Term object.An array of term slugs, names, IDs, or MEOW_Term objects.A CSV string of term slugs, names, or IDs.Note that this implementation will infer the appropriate taxonomies to look for, based on the field type setup in MasterPress.
Return the count of terms selected in the UI. Since this overrides count the number of terms can also be retrieved by calling count directly on the field object.
Checks if the numerical array offset exists in the terms selected in the UI. Since this overrides offset-exists the offset test can be made by calling isset directly on the field object.
Gets the term object at the given numerical array offset, if it exists. Since this overrides offset-get the term can be obtained by an array-style access directly on the field object – see example.
Implements MPFT::forward to allow the field object to forward calls to this field type’s delegate.
Implements MPFT::forward to return the first term, regardless of whether or not the field is setup to allow multiple terms to be selected (iterator-related methods are setup to regard the multiple items though).
Implements iterator_items to allow the selected terms to be iterated with a foreach on the field object.
Overrides the MPFT::value_for_set method to allow Related Term fields to be assigned a value in a number of different formats. A single term slug, name, ID, or MEOW_Term object.An array of term slugs, names, IDs, or MEOW_Term objects.A CSV string of term slugs, names, or IDs.Note that this implementation will infer the appropriate taxonomies to look for, based on the field type setup in MasterPress.
Return the count of terms selected in the UI. Since this overrides count the number of terms can also be retrieved by calling count directly on the field object.
Implements MPFT::forward to allow the field object to forward calls to this field type’s delegate.
Implements MPFT::forward to return the first term, regardless of whether or not the field is setup to allow multiple terms to be selected (iterator-related methods are setup to regard the multiple items though).
Overrides the MPFT::is method to allow the first or only term setup in this field to be checked for equality.
Implements iterator_items to allow the selected terms to be iterated with a foreach on the field object.
Checks if the numerical array offset exists in the terms selected in the UI. Since this overrides offset-exists the offset test can be made by calling isset directly on the field object.
Gets the term object at the given numerical array offset, if it exists. Since this overrides offset-get the term can be obtained by an array-style access directly on the field object – see example.
Retrieves the first or only term selected in the UI.
Retrieves a collection of the terms selected in the field UI. .
Overrides the MPFT::value_for_set method to allow Related Term fields to be assigned a value in a number of different formats. A single term slug, name, ID, or MEOW_Term object.An array of term slugs, names, IDs, or MEOW_Term objects.A CSV string of term slugs, names, or IDs.Note that this implementation will infer the appropriate taxonomies to look for, based on the field type setup in MasterPress.
This class delegates to the MEOW_Term class, meaning it also supports the methods available in that class.
View method list from the base class MPFT.
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 2021 © Three AM All rights reserved.