跳到内容

Flx Modernize

v1.15.3

rickey29 · 2026年9月24日 上架

Render your WordPress pages in Node.js while WordPress and its plugins keep running, with automatic fallback to WordPress.

正在使用
10 以下
评分
暂无
累计下载
1,282
最近更新
2026年11月25日
需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+

贡献者

Flx Modernize sends the content of a page to a Flx Render service, a Node.js app, which returns the finished HTML page in your theme’s look. WordPress keeps handling each request, so its hooks and plugins keep running. If the Render service is unavailable, WordPress renders the page itself.

This release supports sites using the Twenty Twenty-Five theme. A Twenty Twenty-Five renderer package is available from modernize.flexplat.com; you can run it yourself or have it hosted for you. Sites on the Hello Elementor theme can serve pages built with the free Elementor plugin; see “Elementor” below. WooCommerce stores on the Storefront or Astra theme can opt in as well; see “WooCommerce stores” below.

See it in 60 seconds

The same WordPress page with Contact Form 7 and a jQuery lightbox, first in a typical Next.js + REST API front end, then rendered by Node.js with Flx Modernize. Try it yourself on the plugin demo page (visit it logged out).

What is rendered through Flx

  • The blog home page, category and tag archives
  • Single posts and pages
  • Search results
  • The “Page not found” (404) page, still sent with a real 404 status

The theme’s header with its menu, and its footer, appear on every one of these pages. What your plugins print in the page head and footer carries over too: the title, SEO tags (for example from Yoast SEO), structured data and scripts such as analytics. So do plugin styles, and plugin scripts together with the WordPress scripts they need, such as jQuery.

What always stays normal WordPress

  • Anyone who is logged in (administrators and editors always see normal WordPress). A WooCommerce store can let logged-in customers have its catalogue pages; see “WooCommerce stores” below
  • Previews, drafts, private, scheduled and password-protected content
  • Feeds, embeds, robots.txt, trackbacks and any request other than GET or HEAD
  • Visitors who have commented (WordPress’s comment cookies), and reply or “awaiting moderation” links, so they see their own pending comment and a filled-in form
  • With WooCommerce active: the shop, product pages, product categories and tags, the cart, checkout and My account pages, product search and WooCommerce’s own requests; visitors with something in their cart; and the whole site while WooCommerce’s “Coming soon” mode is on. A store that opts in changes some of this; see “WooCommerce stores” below
  • Page types your Render service does not offer: when it answers that it has no such page type, WordPress serves that type for the next hour without asking again

Elementor

Pages built with Elementor on the Hello Elementor theme go through Flx when they use the “Elementor Full Width” or “Elementor Canvas” template, with Elementor’s own markup, styles and scripts. It needs Hello Elementor 3.5 (not a child theme) with the free Elementor plugin 4.3 or 4.4, the versions this release was tested with, and a Render service built for the site; there is no Elementor renderer package to download.

  • Everything else on such a site stays normal WordPress: posts, archives, search, other page templates and WooCommerce store pages.
  • With Elementor Pro, a Hello child theme, or other Elementor or Hello versions, the whole site stays normal WordPress.
  • If the Render service fails, the normal WordPress page is served with all of Elementor’s styles.

WooCommerce stores

Off unless a site opts in: on the Flx Modernize screen (WooCommerce Store pages), or with the constant FLX_MODERNIZE_WOOCOMMERCE in wp-config.php. It needs the Storefront theme, the Astra theme (4.14, without a child theme) or the Flatsome theme (3.18.2; a child theme only with styles and functions.php), and a Render service that draws that theme: the Storefront renderer package, or an Astra or Flatsome renderer built for your site. Any other theme, or a theme or WooCommerce template this release wasn’t reviewed against, stays normal WordPress.

  • The shop, product categories and tags, products and Storefront’s home page go through Flx, for visitors with or without something in their cart.
  • On Astra, the store’s pages on the default page template go through Flx as well; other page templates, posts, archives and search stay normal WordPress. Astra’s header and footer come from WordPress, as your header and footer builder prints them. Every visitor gets the same page, built with an empty cart, and WooCommerce’s own scripts fill in the visitor’s cart in the browser. No cart or customer data is sent to the Render service.
  • On Flatsome, pages on the “Page – Full Width” template go through Flx as well; other page templates, posts, archives and search stay normal WordPress, and so do logged-in users. Flatsome’s header and footer come from WordPress, as Flatsome prints them. Another Flatsome version keeps the whole site on normal WordPress until a release supports it.
  • A further constant, FLX_MODERNIZE_WOOCOMMERCE_SHELL, puts the site’s header and footer from the Render service around the Cart and a guest’s My account page, and FLX_MODERNIZE_WOOCOMMERCE_SHELL_CHECKOUT does the same for Checkout. WordPress fills in these pages on your own server, so their contents are never sent. What comes from the Render service for these pages must pass a strict check, built on WordPress 6.9’s output buffer: no scripts and no forms. If it doesn’t pass, or on older WordPress, these pages stay normal WordPress. If you take real payments, ask your payment provider or assessor before turning on Checkout.
  • Logged-in customers stay normal WordPress, unless the store also sets FLX_MODERNIZE_LOGGED_IN_CUSTOMERS. Then they get the same catalogue pages as a guest, built the same way with nothing about them sent; WordPress marks the page as logged in and hides the review form’s name and email fields, which come from their account; on Astra it also puts the customer’s own account link or avatar in the header. These changes are made on your server. Everything else stays normal WordPress for them, and anyone who can edit content or run the store always does. Leave it off if your prices or products differ per customer (memberships, wholesale or role-based prices).
  • Order pages, product search and sorted or filtered lists always stay normal WordPress.

Safety

  • Only anonymous visitors get Flx pages (and, on a store that turns it on, logged-in customers on catalogue pages), and the page data is always built as an anonymous visitor.
  • No visitor data is sent to the Render service: no cookies, no user account and no query-string values. The one exception is the words a visitor searches for, because the search results page shows them.
  • Requests to the Render service can be signed with a key only your site holds; a Render service in enforce mode rejects anything else.
  • Flx pages are sent with Cache-Control: private, no-store, unless you turn on edge caching (below). A page served by WordPress because the Render service failed is always sent with no-store.
  • If the Render service fails after a page was started, the normal page is fetched fresh from your own site, as the same visitor, so nothing the plugin did while preparing the page can change it. If your server cannot reach its own address, WordPress serves the page directly, as in earlier versions. Setting FLX_MODERNIZE_LOOPBACK_FALLBACK to false in wp-config.php turns the fresh fetch off.
  • Preview only keeps every visitor on normal WordPress while you check Flx pages through a secret preview link. Preview pages are never cached or indexed, and the link is not passed on to other sites. New preview link makes earlier links stop working.
  • Deactivating the plugin instantly returns the whole site to normal WordPress.

Edge caching (optional)

Off by default. With an edge cache time set (Flx Modernize screen, or FLX_MODERNIZE_EDGE_TTL, 60–3600 seconds), Flx pages that are the same for every visitor (pages, posts, the blog home page, category and tag archives, without a query string) can be stored by your CDN. Search results, the 404 page, URLs with a query string, fallback pages and everything WordPress renders itself are never cached.

With a Cloudflare zone ID and a purge-only API token, any change that can show on a page clears your site from Cloudflare’s cache, and Cloudflare can serve an expired copy once while it fetches a fresh one (stale-while-revalidate), so no visitor waits. WooCommerce stores can also cache the shop, category and product pages for at most 5 minutes (Store pages in the edge cache); Cart, Checkout, My account and shoppers with something in their cart never are.

Settings, filters, the CDN rules (including the cart cookies to skip) and the Cloudflare Cache Rule are in the documentation.

For developers

The flx_modernize_should_render filter lets you turn Flx off for a request (return false). It can never turn Flx on for a logged-in user.

The flx_modernize_head_footer_output filter turns off the head and footer output (return false).

Documentation and a step-by-step tutorial for building a renderer for a theme are at modernize.flexplat.com.

External Services

Flx Modernize works by sending page data to an external Flx Render service over HTTPS and displaying the HTML it returns.

  • Which service: the one whose URL an administrator enters on the Flx Modernize settings screen. It can be your own self-hosted instance (the renderer package is GPL-licensed open source) or one hosted for you. There is no default: until a Render URL is saved, the plugin sends nothing anywhere and WordPress renders every page normally.
  • When data is sent: only when an anonymous visitor requests a page that Flx renders (see the lists above), and when an administrator clicks Test connection on the settings screen (a health check and one signed request with no page content). A store using the optional header and footer around Cart, Checkout or My account also sends the site’s shared parts in a background request from the site itself, about every 5 minutes while those pages are visited; nothing about the visitor or those pages’ contents is in it.
  • What is sent: the content needed to draw that page: title, content, excerpt, slug and permalink; publish and modified dates and author display name; featured image URL, size and alt text; site name, home URL and site language; the header menu’s labels and links; links to the site’s own theme CSS (which the Render service then fetches from your site); for archives and search, the list of posts and paging; for posts, the author’s archive link, the post’s categories and tags, the previous and next posts (title and link), the four latest posts for the theme’s “More posts” list, and the comments section as WordPress renders it for an anonymous visitor (approved comments with their author names, avatars and links, and the empty reply form); for search, the search words and the four latest posts (title, link and date) for the theme’s “More posts” list; the SEO tags, structured data (JSON-LD) and scripts that your plugins print in the page head and footer, captured as an anonymous visitor without cookies (WordPress’s own styles and scripts are left out). The filter flx_modernize_head_footer_output turns this off. The filter flx_modernize_comments_html can change or remove the comments section.
  • What a WooCommerce store that opted in also sends, for catalogue pages: the page’s middle as WooCommerce prints it (product descriptions, prices, stock, reviews with their authors’ names and avatars, related products and sidebar widgets); each product’s name, link, type, SKU, prices, stock, rating, review count, image and add-to-cart link; the site’s tagline and logo, its menus, its account, cart and privacy links, Storefront’s hook and widget output, and the page’s body classes; on Astra, Astra’s header, footer and other theme hook output as Astra prints them for an anonymous visitor, the page’s body and container attributes and, for the store’s pages, the page’s middle as Astra prints it; and everything WordPress prints in the page head and footer, including styles and scripts, apart from the charset and viewport tags.
  • What the optional header and footer around Cart, Checkout and My account send: the site’s name, tagline, logo and home URL, its menus, its account, cart and privacy links, the header’s style, the breadcrumb, footer widgets and Storefront’s hook output around the header and footer. No page content or head and footer output.
  • What is never sent: visitor cookies, IP addresses, user accounts, email addresses, passwords or other query-string values. For a store, nor is the visitor’s cart or customer data. A plugin can still print something on a catalogue page that depends on the visitor, such as a price or currency chosen from their location; that output is part of the page, so check such plugins before opting in.

Cloudflare API (optional). Only when an administrator has turned on edge caching and set a Cloudflare zone ID and API token, on the Flx Modernize screen or in wp-config.php: after a change that can alter public pages (for example a post published or a menu saved), the plugin asks Cloudflare to clear its cache for the site’s host name. It sends the zone ID, the token (as the Authorization header) and the site’s host name to api.cloudflare.com; nothing about visitors is sent. Without them the plugin never contacts Cloudflare. Cloudflare’s terms and privacy policy apply.

The Render service is operated by whoever hosts it: you, or the provider you choose. When the hosting is provided by Flx (Rickey Gu), the terms are agreed with you directly; see modernize.flexplat.com.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums