Skip to main content
Cookbook Maintenance Members

Check Which Pages and Posts Are Members-Only with Members and AI

Every restricted post and page, who can see it, and what looks wrong, in one read-only report from Members.

Difficulty Beginner
Time ~5 min

Prerequisites

A site connected to WPVibe running Members 3.3 or newer (tested on 3.3.1, free) on WordPress 6.9 or newer, with an administrator account.

The prompt
My WordPress site uses the Members plugin. Show me everything that is restricted to certain roles, and anything about it that looks wrong. Don't change anything.

1. Run discover_abilities with category members. If the abilities this needs are not there, stop and tell me to install or update the free Members plugin (3.3 or newer, on WordPress 6.9 or newer). If only some are missing, tell me they may be switched off in Members > Settings > AI (MCP).
2. Run members/list-restrictable-types. If content_permissions_enabled is false, tell me Content Permissions is off in Members > Settings, so no restriction applies right now and what follows is what would apply if it were turned on.
3. Run members/list-restricted-content with per_page 100, and again with page 2 and up while total_pages is larger. Group the content by its roles, with title, type, status and link.
4. Run members/list-roles. Flag content whose roles are all missing from that list (they were deleted, and the content stays hidden from everyone who can't edit it); a deleted role listed next to roles that still exist does no harm, so leave it. Also flag content whose roles all have 0 users (only people who can edit it see it), and restricted content that is a draft or private.
5. For each restricted page, run rest_api GET /wp/v2/pages with parent set to its ID, per_page 100 and status publish,private,draft,pending,future, and again for each page it finds, so grandchildren are found too. List these pages: they inherit the restriction unless they have their own, and show the default message.
6. Run members/get-settings and tell me the default message (content_permissions_error), and whether private_blog is on (then the whole site needs a login).
7. Finish with a short report: what is restricted and to whom, what looks wrong, and a fix for each as a sentence I can ask you later. Don't make any of them.
Already connected?

Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:

Run the “Check Which Pages and Posts Are Members-Only with Members and AI” recipe from the WPVibe cookbook on my connected site.

Restrictions pile up: a members page from last year, a few posts locked for a course, a role you deleted that some pages still point to. Members sets each restriction on the post’s own edit screen, with no single list of them, so it is hard to tell what your visitors can’t see.

The AI lists every restricted post and page through Members, grouped by who can see it, with the child pages that inherit each restriction. It flags what looks wrong: content tied to a role that no longer exists or that nobody has, and restricted drafts. It only reads, so Members’ default read-only mode is all it needs.

Paste the prompt and read the report. Content whose roles were all deleted stays hidden from everyone who can’t edit it. Each fix comes back as a sentence you can ask for later, and this recipe restricts a page the right way.

Outcome

A list of everything restricted and to whom, with the problems flagged and a fix for each, and nothing changed.