My Private Site – Make Your Whole Site Private, Force Login & Block Registration Spam source code

By David Gewirtz, on WordPress.org since 2012. 10,000+ active installs.

Browse code Download zip

My Private Site makes your WordPress site private so only logged-in users can see your content. Below is its source code for every one of its 51 releases, what changed in the latest one, and how often it ships.

What changed in 4.2.3

Released Sep 1, 2026, 1 month after 4.2.1
  • Fixed unauthenticated access to protected post and comment feeds when using classic themes.
  • Protected WordPress XML sitemaps across themes and compatibility modes.
  • Hardened aggregate content routes so page-level exemptions cannot expose protected content or URLs.
  • Hardened direct comment and pingback access, protected REST membership checks, reCAPTCHA verification, license transport, backup restore, cleanup deletion, and uninstall handling.
  • Corrected Public Pages, Tags & Categories, and Guest Access rule composition so forged or unresolved access states cannot become public.
  • Updated the bundled CMB2 library to version 2.12.0 for current WordPress and PHP compatibility.

100 files changed since 4.2.1: 79 modified, 21 added, 0 removed.

And 90 more.

Compare 4.2.1 with 4.2.3

Release history

51 releases since April 2015
  1. 4.2.3 Sep 1, 2026 Fixed unauthenticated access to protected post and comment feeds when using classic themes.
  2. 4.2.1 Jul 26, 2026 Fixed privacy enforcement for block themes when using Standard compatibility mode.
  3. 4.2 Jun 29, 2026 Added Spam Account Cleanup, a staged dry-run, CSV export, and batch deletion tool for safely removing spam subscriber accounts.
  4. 4.1.1 Jun 5, 2026 Added the Protection-tab Registration Spam Guard controls for honeypot, gibberish username, excessive email dots, missing MX, and StopForumSpam checks.
  5. 4.1.0 Jan 28, 2026 Added Registration Spam Guard and reCAPTCHA login protection to the free plugin.
Full My Private Site – Make Your Whole Site Private, Force Login & Block Registration Spam changelog with diffs

Source of 4.2.3

429 files
Browse all My Private Site – Make Your Whole Site Private, Force Login & Block Registration Spam 4.2.3 files Browse trunk