[WordPress] 外掛分享: PJ Maintenance

首頁 › 外掛目錄 › PJ Maintenance
WordPress 外掛 PJ Maintenance 的封面圖片
全新外掛
安裝啟用
—
尚無評分
3 天前
最後更新
—
問題解決
WordPress 6.3+ PHP 7.4+ v1.0.0 上架:2026-11-19

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「PJ Maintenance」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

PJ Maintenance puts your whole site behind one page. Turn it on, and visitors see your maintenance, coming-soon or site-closed page; you and anyone you choose keep seeing the real site.
Three modes

Maintenance sends HTTP 503 with a Retry-After header, so search engines know the site is down for a short time and keep your rankings.
Coming soon sends a normal page (HTTP 200), with an option to ask search engines not to index it.
Site closed / moved is for a site that is gone for good. The home page stays a normal page search engines can find; every other old address shows the same page with HTTP 410 (Gone), so old links still land somewhere useful while search engines drop them.

Build the page without code

Logo (from the Media Library) with an adjustable width
Heading and subheading
Content with the WordPress editor — text and formatting (headings, bold, italics, lists, quotes, alignment); links go on the Buttons tab
Footer line for copyright, address or email
Background color, or a background image with fit, focus point and a color overlay so text stays readable
Text and accent colors, system sans-serif or serif font, centered or left-aligned, plain or on a card

Buttons
Send visitors where they need to go: add buttons with a label, a link (web address, email or phone) and an optional description. Show them as buttons in your accent color — with your own title, description and hover colors — or as cards, one to four per row. Drag to reorder.
Export as HTML
Download the page as a zip of plain files — index.html, its images, and an .htaccess that answers with the same status codes — so it can stay online after WordPress is removed. Handy when a site closes for good.
Access for the right people

Administrators always see the real site.
Choose other roles (Editor, Author…) that skip the page when logged in.
Turn on a private access link for clients or testers who don’t have an account. The link sets a cookie for 30 days, and you can replace it any time.

Built to behave

Quick on/off switch and preview in the admin bar, with a red indicator while the page is up.
Optional login padlock in the corner of the page: it slides in a login panel (no JavaScript); after logging in you stay on the website, or go to the dashboard if you prefer.
Keeps posts, pages, users and media out of the REST API (and feeds) while the page is up (you can switch the REST part off on the General tab); other plugins’ public REST routes, such as galleries and carts, keep working, and so do the login page, admin and robots.txt.
The page is never cached, and turning the page on or off clears WP Fastest Cache, W3 Total Cache, WP Super Cache, WP Rocket and LiteSpeed Cache.
Lightweight: one small stylesheet, loaded only on the maintenance page. No JavaScript, theme files or tracking.
Translation ready.

Add-ons
PJ Maintenance Pro is a separate plugin sold on purejeannius.com. It adds sections that are not part of this plugin: a countdown that can open the site by itself, social icons, a video, a contact or sign-up form, a map and custom HTML.
Developer hooks
Filters:

pjmaint_is_active( bool $active, array $settings )
pjmaint_bypass( bool $bypass, array $settings ) — let a visitor see the real site
pjmaint_rest_blocked_prefixes( string[] $prefixes ) — REST routes hidden from visitors while the page is up (default wp/v2, oembed/1.0 and WooCommerce’s public product routes)
pjmaint_rest_allowed_prefixes( string[] $prefixes ) — routes inside those that visitors may still use, e.g. wp/v2/categories
pjmaint_default_settings( array $defaults ), pjmaint_sanitize_settings( array $out, array $input )
pjmaint_sections( string[] $keys, array $settings ) — order of the page sections (logo, heading, content, links); add your own keys
pjmaint_content_allowed_html( array $tags ) — HTML allowed in the Content field (text formatting only by default)
pjmaint_css_vars( array $vars, array $settings )
pjmaint_retry_after( int $seconds, array $settings ) — the Retry-After header sent with the 503
pjmaint_toggle_on( array $stored, array $settings ) — settings saved when the admin-bar switch turns the page on
pjmaint_status_text( string $text, bool $on, array $settings ) — status line on the settings screen
pjmaint_settings_tabs( array $tabs )
pjmaint_export_html( string $html, array $settings, PJMaint_Export $export ) — change the exported index.html; $export->asset( $url ) adds a file from this site and returns its new path
pjmaint_export_file_types( string[] $extensions ) — file types copied into the export

Actions:

pjmaint_section_{$key}( array $settings ) — print a section
pjmaint_enqueue( array $settings ) — enqueue assets for the page (only these and PJ Maintenance’s own are printed; local files are copied into the static export too)
pjmaint_head, pjmaint_footer, pjmaint_before_render
pjmaint_settings_tab_{$key}( array $settings, string $option ), pjmaint_settings_after( array $settings ), pjmaint_register_settings, pjmaint_settings_page_load
pjmaint_purge_cache — clear your own cache or CDN

延伸相關外掛

文章
Filter
Mastodon