MasterPress 1.3.1 is a compatibility release for PHP 8 and WordPress 5.7. It still remains backwards compatible with older PHP versions.
MPFT_RelatedPostType :: post_types()
Retrieves a collection of the post types selected in the field UI.
Note: since this class implements the iterator_items method you don’t necessarily need to call this method.