Post Type Generator

Post Type Generator

Details
View on WordPress

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.

Details

Plugin code:
post-type-generator
Plugin version:
1.0.0
Author:
Outdated:
No
WP version:
6.0 or higher
PHP version:
8.0 or higher
Test up to WP version:
7.1.1
Total installations:
0
Last updated:
2026-09-22
Rating:
Times rated:
0
content
custom-post-types
developer
export
tools