Skip to content

Commit

Permalink
SEO: Index lesson CPT (#2813)
Browse files Browse the repository at this point in the history
  • Loading branch information
renintw authored Aug 1, 2024
1 parent c4f4e67 commit 0c8cdd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wp-content/plugins/wporg-learn/inc/post-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0c8cdd5

Please sign in to comment.