WordPress plugin intelligence profile

Nahnu Code & API Block

A block suite for developer documentation: syntax-highlighted code snippets plus a full set of API-documentation blocks. Website | Documentation | See …

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version1.0.3
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 6.3 · PHP 7.4
Directory statusactive
Last directory update13 Oct 202619d ago
Active installationsNewAdoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Nahnu Code & API Block version 1.0.3 as active, updated 19d ago and tested up to WordPress 7.1.

Overview

About this plugin

Nahnu Code & API Block gives the block editor everything a developer-facing site needs to document code and APIs: a polished syntax-highlighted code block, and a matching family of blocks purpose-built for API reference pages — endpoints, parameter tables, tabbed request/response examples, status code tables, authentication headers, and a live try-it console.

The code block

  • Syntax highlighting for 20+ languages, powered by Prism.js and bundled with the plugin (no external CDN requests).
  • Automatic light/dark mode: follows the visitor’s OS preference, and can also follow a dark-mode class or attribute your theme or another plugin already sets on <html> or <body> (filterable).
  • An optional per-block toggle button so visitors can flip a single code block between light and dark themes manually.
  • Long snippets collapse to a configurable preview height with a “View all code” button that opens the complete snippet in a modal.
  • One-click Copy button, optional line numbers.

The API-documentation blocks

  • Endpoint — HTTP method badge, path, a short summary plus an optional longer description, version badge, an optional deprecation notice, an “Auth Required” indicator, an “Operation ID” for a stable deep-link anchor, a “See also” list of related endpoints, and a copy-link icon for deep-linking directly to this endpoint.
  • Parameters — a name / type / location (query, path, header, cookie, body) / format / default value / example value / allowed values / validation range and pattern / nullable / read-only or write-only / required-optional / deprecated / description table, with support for nested object parameters (e.g. an address parameter with its own line1, city, etc.), linkable type references (e.g. “array of ProgramResponseDto ” linking to another Parameters block set up as that named schema), and a copy-link icon on each row for deep-linking to a specific parameter.
  • Request / Response — tabbed code examples per language (cURL, JavaScript, Python, PHP, and more), each with Request and Response sub-tabs. Language selection is synced and remembered across every Request/Response block on the same page.
  • Response Body — a “Returns” description, optional response headers shown as a persistent table, and one or more real response bodies grouped by status code, shown as an expandable accordion with syntax highlighting and its own copy button per response. An optional “Show Schema” toggle switches a response between its real example and a lightweight type-shape table. Complements the Status Codes block: Status Codes is the quick-scan summary table, Response Body is the rich single-response view.
  • Status Codes — a table of the HTTP status codes your API returns, color-coded by class (2xx/3xx/4xx/5xx), with an optional collapsible example response body.
  • Authentication — shows the exact header a client needs to send (Bearer token, API key, Basic auth, or OAuth 2.0), with a copy button.
  • Try It Console — a live request form visitors can edit (URL, headers, body) and send directly from their own browser to see a real response. This performs a genuine client-side request; it never proxies or issues the call from your WordPress server.
  • Error Codes — document your API’s error types and codes (e.g. invalid_request_error / parameter_missing ), distinct from HTTP status codes, each with an optional expandable example error body.
  • Events — list the webhook/event names a resource can emit (e.g. customer.created ), each with a description, an optional expandable example payload, and a copy-link icon.
  • API Navigation — auto-generates a jump-list of every Endpoint block on the current page. No manual list to keep in sync as you add or reorder endpoints; scans this page only, never your whole site.
  • Servers — list an API’s base URLs (production, sandbox, regional) each with a label and a copy button. Maps onto OpenAPI’s servers array, including server variable templating like {region}.

com/docs/main/blocks.

All blocks share the same visual language and the same light/dark theming, so a full API reference page looks consistent throughout. Site-wide colors can be set visually under Settings → Nahnu Code Block — no code required — and any single block can still override just its own colors for one-off branding.

Using blocks outside the block editor

md. Both support the same per-instance color overrides as the settings page.

External services and data

Nahnu Code & API Block does not connect to any external service, API, or CDN at runtime, and does not collect, transmit, or store any personal data. js syntax-highlighting library is bundled with the plugin files (MIT licensed) rather than loaded from a third-party server.

The Try It Console block is the one exception worth being explicit about: when a site visitor clicks “Send request” on that block, their own browser makes a direct HTTP request to whatever URL is shown in that block (which the page author configured, and the visitor can edit). That request comes from the visitor’s browser, not from your WordPress server, and nothing about it is seen by this plugin’s author or by Nahnu.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • api documentation
  • code block
  • rest api
  • syntax highlighting
  • gutenberg
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 6.3 · PHP 7.4
Update activity13 Oct 202619d ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

Version1.0.21.0.3
WordPress compatibility7.1.17.1.3
Version1.0.11.0.2
Version1.0.01.0.1
WordPress compatibility7.17.1.1
Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.