-
v3.1.0 Stable
released this
2026-08-07 11:57:25 +00:00 | 11 commits to main since this release3.1.0 [2026-07-18]
Closes the three remaining HIGH-priority items from the original gap audit.
Added
- WP core XML sitemap integration. Hooks
wp_sitemaps_posts_query_args,wp_sitemaps_taxonomies_query_args, andwp_sitemaps_users_query_argsso URLs that should not be indexed drop out of/wp-sitemap.xml. Two layers of exclusion: (1) whole-type exclusion — ifsingular.noindex=1hides every post type;single.noindex=1hides all posts;page.noindex=1hides all pages;attachment.noindex=1hides all attachments;cpt_{type}.noindex=1hides that CPT;category.noindex=1/tag.noindex=1hide those taxonomies;author.noindex=1hides the entire users sitemap. (2) per-item exclusion — posts/terms with the granular_noindex_seo_override=1+_noindex_seo_noindex=1flag are excluded from their type's sitemap. Closes the biggest SEO-quality gap (Google Search Console flags noindexed URLs in sitemaps as a coverage warning). - Per-CPT global defaults. Every public custom post type (anything public + non-built-in: WooCommerce
product, EDDdownload, LMS lesson/course, etc.) now gets its own contextcpt_{post_type}and a "Custom Post Types" section in the settings page. Previously every CPT single fell into the genericsinglebucket; now each CPT can have its own noindex / nofollow / noarchive / nosnippet / noimageindex defaults that apply globally to all of its items. - REST API exposure. Two new read-only endpoints under
/wp-json/noindex-seo/v1/:GET /settings— returns the consolidated settings array (contexts × directives + config), so headless consumers (Next.js, Gatsby, mobile apps) can read the global configuration.GET /effective?post_id=123— returns the active directive list for a specific post, computed by the same precedence used on the front-end (per-post override → per-CPT default → built-insingle/page/attachmentcontext). Includes the implementationmethodso consumers know whether to render a<meta>tag, anX-Robots-Tagheader, or both.
Compatibility
- WordPress: 5.7 - 7.1
- PHP: 7.2 - 8.5
Tests
- Added
tests/test-sitemap.php(per-post + global-context exclusion for posts/terms/users sitemaps). - Added
tests/test-rest-api.php(settings endpoint, effective endpoint for post-meta and CPT-default sources, 404 for unknown post). - Added
tests/test-cpt-contexts.php(dynamic context registration, per-CPT settings application).
Downloads
- WP core XML sitemap integration. Hooks