
內容簡介
Post Type Generator 是一款簡單易用的外掛,讓使用者能夠輕鬆創建和管理自訂文章類型。透過直觀的介面,使用者可以設定文章類型的標籤、可見性及其他屬性,無需撰寫程式碼。
【主要功能】
• 創建自訂文章類型
• 編輯標籤與屬性
• 設定可見性與管理介面
• 匯出 PHP 註冊代碼
• 不影響現有文章數據
外掛標籤
開發者團隊
原文外掛簡介
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.
