| 开发者 | midvash |
|---|---|
| 更新时间 | 2026年11月7日 02:44 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
the_content (posts and pages) — including localised book names and abbreviations across 9 languages.[mvbr_votd] shortcode.prefers-color-scheme and matching opt-in body classes (dark-mode, theme-dark, wp-dark-mode).John 3:16 / João 3:16 / Juan 3:16 / Jean 3:16 / Johannes 3:16 / Giovanni 3:16 / Иоанн 3:16 / 요한복음 3:16 / 约翰福音 3:16John 3.16 (alternative separator)John 3:16-18 (verse ranges, up to 50 verses)Gn 1:1, Jn 3:16 (the abbreviations of the language chosen in Settings, written with chapter and verse)Psalms 23 / Salmos 23 / Psaumes 23 (chapter-only, full book name)alt, src, srcset) is never touched.
Available Bible versions
The list below mirrors the Midvash API catalogue in October 2026 and may grow over time. The plugin's Settings → Midvash Bible References page always shows the current catalogue.
Portuguese — 22: AA ©, ACF ©, ARA ©, ARC ©, AS21 ©, BPT ©, JFAA ©, KJA ©, MSGPT ©, NAA ©, NBV ©, NTLH ©, NVI ©, NVT ©, ALMEIDA-LIVRE, BPM, ONBV, NVA, BLPT, TFT, OL ©, ALM1911
English — 18: KJV, MSG ©, NIV ©, NLT ©, WEB, ASV, YLT, DRA, BBE, GENEVA1599, BSB, LSV, NET ©, DARBY, RV1885, CPDV, WMB, FBV
Spanish — 7: NTV ©, NVIES ©, RVR1909, RVG, SEV, ONBV-ES, PDT
French — 6: LSG, DARBY-FR, MARTIN1744, CRAMPON, FRASBL, NCL
German — 7: LUTH1912, SCHL1951, ELB1905, MEN, LUTH1545, ELB1871, TEXTBIBEL
Italian — 3: DIODATI, RIVEDUTA, DIODATI1885
Russian — 1: SYNODAL
Korean — 1: KOR
Chinese (Simplified and Traditional) — 4: CUV, CUVS, CCB, CCBT
© = version with reserved rights, served to this plugin by the Midvash API (one chapter per reference).
Default version per locale: ONBV (pt-br), BSB (en), RVR1909 (es), LSG (fr), LUTH1912 (de), RIVEDUTA (it), SYNODAL (ru), KOR (ko), CUV (zh).
Beyond the plugin's nine display locales, the full Midvash API catalogue spans 153 Bible versions in 81 languages — including original-language texts such as the Hebrew Aleppo Codex and WLC, the Greek LXX and SBLGNT, and the Latin Vulgate. As new versions land in the API they appear in the plugin's settings automatically, no update required.
Source code
Source code and build tools: https://github.com/midvash/bible-wordpress-plugin
The readable JavaScript and CSS ship in the plugin next to the minified copies (assets/js/*.js, assets/css/*.css). The *-<version>.min.js and *-<version>.min.css files are generated from them by scripts/build-zip.ts in the repository (npx tsx scripts/build-zip.ts, which minifies with esbuild). Define SCRIPT_DEBUG to load the readable files.
midvash-bible-references folder to /wp-content/plugins/, or install via Plugins → Add New → search "Midvash Bible References".John 3:16 — that's it. Hover the link to see the tooltip.No. The Midvash API is public and read-only. The plugin works out of the box.
Yes. The first fetch for a given verse hits the API; subsequent loads for any visitor read from a local cache (30 days by default, configurable in Settings → Cache & Performance). On installs with a persistent object cache (Redis, Memcached) the second hit stays in memory.
Yes — use the Bible Verse — Midvash Gutenberg block, available in the Text category of the block inserter. You can override the version, the display language, and toggle the reference badge / link per block.
Add the Verse of the Day — Midvash widget via Appearance → Widgets, or drop [mvbr_votd] anywhere in your content. Both accept locale and version overrides; the daily verse is cached for 24 hours.
Single posts and pages (is_singular() true). The Gutenberg block and the VOTD shortcode work everywhere.
Settings → Midvash Bible References → General. Toggle "Enable custom color" and / or "Underline links", then pick the colour and style.
Nine: Portuguese (Brazil), English, Spanish, French, German, Italian, Russian, Korean and Chinese (Simplified). The plugin's UI strings are translated; book names, abbreviations and URL slugs are also localised in those nine languages.
version in the shortcode can no longer push it past the WordPress transient key limit and break the cache.midvash-bible-references), published by Midvash. The plugin files, the text domain and every internal name now use the mvbr prefix.[mvbr_votd] and the block is midvash-bible-references/verse. Posts that used [bbm_votd] or the old block need to be edited once..po/.mo files.title) no longer opens on top of the verse; its text moves to aria-label for screen readers.bbm-tooltip-0.10.1.min.js). Caching plugins that strip ?ver= from asset URLs (such as WP Rocket's "remove query strings") left a CDN serving the previous release's files, so the old tooltip stayed on the site after an update.src, srcset or alt contained "Bíblia" or a reference got a link injected into the attribute and broke.code, pre and script.Domain Path, so WordPress looked for the bundled translations in the wrong folder and the plugin stayed in English on every site./en/…, which redirects and lost the verse. Links now go straight to the verse anchor.e.target.closest is not a function error, the version badge now links to the version that actually answered, and it shows the version's short name ("BL" instead of "ALMEIDA-LIVRE"), as does the Bible Verse block.[bbm_votd] shortcodes that name a retired version are mapped the same way at render time — no edits needed./v1/passages batch endpoint (up to 60 references per page, 20 per upstream call). Hovering a reference shows the verse instantly instead of waiting for a per-hover round-trip. Hovers that land before the prefetch finishes fall back to the previous per-verse fetch, so nothing ever blocks on it./v1/versions catalogue.X-RateLimit-Reset handling: the API now documents that it serves without rate limits, so the client keeps only transport-error and 5xx retries.bbm_/BBM_ prefix to bbmv_/BBMV_ — WordPress.org requires plugin prefixes of at least 4 characters. Purely internal: stored options, the [bbm_votd] shortcode, AJAX endpoints, CSS classes and asset handles are unchanged, so existing sites update in place with settings intact and nothing to reconfigure.phpcs.xml.dist, phpstan.neon.dist) and a WordPress Playground blueprint that runs the official wordpress.org Plugin Check without Docker. The 0.7.0 wp.org build passes Plugin Check with no errors.midvash.app/api/wordpress/update-info.json). No functional change; existing installs should be updated once to point at the new endpoint.load_plugin_textdomain call (WP 4.6+ auto-loads .mo files by slug match and Plugin Check flags it as "discouraged"), wraps every $_POST/$_GET access in wp_unslash() + sanitize_*, validates the admin tab against a whitelist, and moves the inline admin JS into a properly enqueued asset with wp_localize_script. The settings page now passes WordPress Plugin Check with zero errors.manage_options capability check to the admin-only bbm_get_versions AJAX endpoint, adds a per-IP rate limit (120 verse lookups / minute) on the public bbm_get_verse endpoint, switches wp_remote_get to reject_unsafe_urls and limit_response_size to harden against SSRF and oversized payloads.BBM_Books::parse_reference() — the parser, the API client and the Gutenberg block now share one implementation, one accent-tolerance pass and one chapter-range check.__() + the bundled .mo files instead of a hardcoded 9-locale lookup, so new locales come for free as .po files land. Adds an mb_strtolower fallback for shared hosts without the mbstring extension.uninstall.php to remove plugin options and transients on deletion. Stops wiping the cache on deactivation (was punishing users who deactivate to debug). Removes dead BBM_API::get_books() and BBM_API::clear_cache() methods.Bible Verse — Midvash (category: Text). Authors can insert any Bible reference directly into the block editor; the verse is fetched and rendered server-side by PHP on each page load. Supports all 9 locales, version and language overrides per-block, show/hide reference, and optional link to Midvash. Schema.org Quotation microdata included in output. No build step required.[bbm_votd] shortcode powered by the Midvash API. Place the widget in any sidebar or use [bbm_votd] anywhere in your content. Supports all 9 locales, per-widget language and version overrides, and caches the daily verse for 24 hours.Quotation microdata to all auto-detected Bible reference links. Search engines can now parse every verse reference as structured data, improving rich-result eligibility for sites using the plugin.scripts/sync-books.ts, eliminating ~500 lines of hardcoded data..pot template to match the current source strings.