From 0c8cdd53c80ca681996dc51f44174c8d42a23a1e Mon Sep 17 00:00:00 2001 From: Ren <18050944+renintw@users.noreply.github.com> Date: Fri, 2 Aug 2024 05:26:06 +0800 Subject: [PATCH] SEO: Index lesson CPT (#2813) --- wp-content/plugins/wporg-learn/inc/post-type.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-content/plugins/wporg-learn/inc/post-type.php b/wp-content/plugins/wporg-learn/inc/post-type.php index fc99af088..567c64a57 100644 --- a/wp-content/plugins/wporg-learn/inc/post-type.php +++ b/wp-content/plugins/wporg-learn/inc/post-type.php @@ -252,6 +252,9 @@ function jetpack_copy_post_post_types( $post_types ) { function jetpack_sitemap_post_types( $post_types ) { $post_types[] = 'lesson-plan'; $post_types[] = 'wporg_workshop'; + // The "lesson" has been excluded in Sensei LMS, but it is needed in Learn. + // See https://github.com/Automattic/sensei/blob/trunk/includes/class-sensei-posttypes.php#L25. + $post_types[] = 'lesson'; return $post_types; }