MasterPress 1.3.1 is a compatibility release for PHP 8 and WordPress 5.7. It still remains backwards compatible with older PHP versions.
WOOF_Collection :: dedupe( String $by = id )
- WOOF_Collection The collection with duplicates removed.
Removes duplicates from the collection as identified by the specified property, that is, two objects are considered duplicate if the property value on each of those objects is the same.
String $by = id
The property name to check against for duplicate objects. The default of “id” means that this param doesn’t generally need to be specified for all of the built-in WordPress objects (posts, pages, terms, users)