Skip Navigation

[Resolved] Create custom post type by code

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.


This topic contains 2 replies, has 2 voices.

Last updated by Christian Cox 3 years, 3 months ago.

Assigned support staff: Christian Cox.


Hi there,

I'd like to do something like this but only by code, i.e. I want to create a custom post type that is "Toolset-ready" by code.

More practical, I would like to replace this code: `register_post_type(self::POSTTYPE, self::POSTTYPE_ARGS)` by something like this `wp_types_register_post_type(self::POSTTYPE, self::POSTTYPE_ARGS)´

In the end I would expect this post type to behave just like one created by the Toolset GUI.

Is there any API for that?

Best regards


Christian Cox

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Hi, I'm not aware of a public API for registering post types the Toolset way, but I will reach out to my 2nd tier support team to see if there is any alternative to the GUI.


Christian Cox

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

It turns out there is not a public API for creating custom post types in code. For now, the best approach is to create new post types using the GUI.

The forum ‘Types Community Support’ is closed to new topics and replies.