Automattic / Automattic/jetpack

jetpack_development_mode filter breaks Custom Content Post Types

Open
#7,971 4 comments 1 reaction 0 assignees View on GitHub
[Feature] Custom Content Types [Pri] Low Bug
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

Custom content post types (testimonials & portfolios) show up normally when JETPACK DEV DEBUG constant is used, however when the jetpack_development_mode filter is added through a plugin, the custom content types do not show up as they should.

---

Steps:
* Install & activate Jetpack
* Install & activate plugin containing the jetpack_development_mode filter
* Active custom content types setting in Jetpack
* Enable the testimonials & portfolios custom content types in Jetpack

---

Expected: Portfolios & Testimonials post types show up in the left-hand menu in the admin.
Actual: No menu item is added, when you go to the specific post type edit page, you get an Invalid Post Type error.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.