[WordPress] 外掛分享: Post Type Generator

首頁 › 外掛目錄 › Post Type Generator
WordPress 外掛 Post Type Generator 的封面圖片
全新外掛
安裝啟用
—
尚無評分
37 天前
最後更新
—
問題解決
WordPress 6.0+ PHP 8.0+ v1.0.0 上架:2026-09-21

內容簡介

Post Type Generator 是一款簡單易用的外掛,讓使用者能夠輕鬆創建和管理自訂文章類型。透過直觀的介面,使用者可以設定文章類型的標籤、可見性及其他屬性,無需撰寫程式碼。

【主要功能】
• 創建自訂文章類型
• 編輯標籤與屬性
• 設定可見性與管理介面
• 匯出 PHP 註冊代碼
• 不影響現有文章數據

外掛標籤

開發者團隊

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

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

原文外掛簡介

Post Type Generator adds one screen under Tools. Add and edit open in a dialog on that screen. From there you can create a custom post type, change its labels and supports, turn it off without losing the settings, or export the register_post_type() call as PHP.
Definitions are stored in the ptg_post_types option on your site and registered on init while this plugin is active. The plugin does not contact any external server, does not load scripts or styles from a CDN, and does not add links or credits to the public site.
JavaScript and CSS in this plugin are the source. There is no build step and nothing is obfuscated.
Deleting a generated type does not delete its posts. They stay in the database and disappear from the admin until the same key is registered again.
What you can set

Singular and plural labels
Post type key (lowercase letters, numbers, underscores, at most 20 characters, fixed after creation)
Public visibility, admin screens, the REST API, an archive, hierarchy, and search
Rewrite slug
Editor features and taxonomies that are already registered
A Dashicon and an optional admin menu position

Developers
add_filter('posttypegenerator_post_type_args', function (array $args, array $type): array {
return $args;
}, 10, 2);

The filter receives the arguments passed to register_post_type() and the saved definition.
Development source: https://github.com/ahmadreza-log/post-type-generator
Privacy
This plugin does not track visitors or account holders, does not set its own cookies, and does not contact third-party services.
It stores the post type settings you submit (names, key, visibility, supports, taxonomies, icon, and menu position) in the WordPress options table. Those settings are removed when the plugin is deleted from the Plugins screen. Posts created with a generated type are not deleted.

延伸相關外掛

文章
Filter
Mastodon