跳到内容

Post Type Generator

v1.0.0

AHMAD_R3ZA · 2026年9月22日 上架

Create custom post types from the WordPress admin and export their registration code.

正在使用
10 以下
评分
暂无
累计下载
387
最近更新
2026年9月22日
需要 WordPress 6.0+已测试到 7.1.5PHP 8.0+

贡献者

截图

The Tools screen lists saved post types and opens add or edit in a dialog.
The Tools screen lists saved post types and opens add or edit in a dialog.

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.

Plums

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

导航

说明

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

© 2026 Plums