diff --git a/php/class-coauthors-plus.php b/php/class-coauthors-plus.php index 9f40ddc2..c5007e1e 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(