
Let’s talk about your project and how it aligns with your business strategy.
You can also email us at contact@wordpresstoday.agency
A few days ago I was working on a project that was using JetFormBuilder and JetEngine CCTs via REST API and I needed some custom functionality between a form created with JetFormBuilder and the website. I spent a lot of hours trying to figure out how to create/update/delete JetEngine CCTs using PHP code and I found exactly 0 documentation on the matter so I decided to share the code as it may help other people as well.
$cct_name = ‘test’; // Name of the Custom Content Type. Don’t add “jet-cct-“ as JetEngine will add it by default.
$cct_id = 10; // The ID of the Custom Content Type item you want to delete.
$content_type = \Jet_Engine\Modules\Custom_Content_Types\Module::instance()->manager->get_content_types($cct_name);
$handler = $content_type->get_item_handler();
$handler->delete_item($cct_id);
That’s it!
If you have any difficulties or you enjoyed this post, feel free to leave a comment!
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
Let’s talk about your project and how it aligns with your business strategy.
You can also email us at contact@wordpresstoday.agency
Let’s talk about your project and how it aligns with your business strategy.
You can also email us at contact@wordpresstoday.agency
Let’s talk about your project and how it aligns with your business strategy.
You can also email us at contact@wordpresstoday.agency
Let’s talk about your project and how it aligns with your business strategy.
You can also email us at contact@wordpresstoday.agency
Let’s talk about your project and how it aligns with your business strategy.
You can also email us at contact@wordpresstoday.agency
Let’s talk about your project and how it aligns with your business strategy.
You can also email us at contact@wordpresstoday.agency
Let’s talk about your project and how it aligns with your business strategy.
You can also email us at contact@wordpresstoday.agency