Automattic / Co-Authors-Plus

Multiple bylines and Guest Authors for WordPress
https://wordpress.org/plugins/co-authors-plus/
GNU General Public License v2.0
287 stars 205 forks source link

Add supported_post_types() method #1006

Closed GaryJones closed 9 months ago

GaryJones commented 9 months ago

Description

Allows the method to be called at any time, not just as part of an action callback.

This will help in being able to remove some global variable references in tests.

Removes extra built-in post types that have support for an author, but aren't visible and useful for co-authors to be added.

The class property is populated for back-compat, but this could be removed in a major release.

Includes tests.