Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable the lesson archive #5192

Merged
merged 1 commit into from
May 26, 2022
Merged

Disable the lesson archive #5192

merged 1 commit into from
May 26, 2022

Conversation

m1r0
Copy link
Member

@m1r0 m1r0 commented May 26, 2022

Fixes #4241

Changes proposed in this Pull Request

This PR disables the lesson archive by default. The GH issue explains why this is needed.

Testing instructions

  • Refresh your permalinks.
  • Check if the archive is disabled by visiting yoursite.com/lesson.

Notes

If someone needs this feature, it could be enabled again with the following snippet:

add_filter( 'sensei_register_post_type_lesson', function( $args ) {
	$args['has_archive'] = true;
	return $args;
} );

@m1r0 m1r0 added this to the 4.4.3 milestone May 26, 2022
@m1r0 m1r0 requested a review from a team May 26, 2022 13:25
@m1r0 m1r0 self-assigned this May 26, 2022
Copy link
Contributor

@Imran92 Imran92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

@m1r0 m1r0 merged commit 0a07e20 into trunk May 26, 2022
@m1r0 m1r0 deleted the update/disable-lesson-archive branch May 26, 2022 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Disable lesson archive
2 participants