diff --git a/php/class-coauthors-plus.php b/php/class-coauthors-plus.php index f51a5289..0a195690 100644 --- a/php/class-coauthors-plus.php +++ b/php/class-coauthors-plus.php @@ -255,6 +255,10 @@ public function admin_init(): void { * @return array Supported post types. */ public function supported_post_types(): array { + if ( ! empty( $this->supported_post_types ) ) { + return $this->supported_post_types; + } + $post_types = array_values( get_post_types() ); $excluded_built_in = array(