-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Basic support of custom post types #25157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
Generated by 🚫 Danger |
|
| App Name | Jetpack | |
| Configuration | Release-Alpha | |
| Build Number | 30587 | |
| Version | PR #25157 | |
| Bundle ID | com.jetpack.alpha | |
| Commit | 5070ed6 | |
| Installation URL | 2ouhd2bh8m518 |
|
| App Name | WordPress | |
| Configuration | Release-Alpha | |
| Build Number | 30587 | |
| Version | PR #25157 | |
| Bundle ID | org.wordpress.alpha | |
| Commit | 5070ed6 | |
| Installation URL | 1lk04dd38f2q8 |
🤖 Build Failure AnalysisThis build has failures. Claude has analyzed them - check the build annotations for details. |
| return TaggedManagedObjectID(blog) | ||
| } | ||
| case let .selfHosted(id, _, _, _): | ||
| case let .selfHosted(id, _, _, _, _): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(nit) would be nice to wrap this associated values in a struct
| import WebKit | ||
| import DesignSystem | ||
|
|
||
| class SimpleGBKViewController: UIViewController { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the editor used for custom posts? Would it work to parameterize the current editor (NewGutenbergViewController) to work with these posts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that'd be the next step. The SimpleGBKViewController was created to quickly test editing custom posts in GBK editor.
af4e4b9 to
014b963
Compare
|





Description
This PR adds basic support for custom post types, which is behind a local feature flag (on by default in debug builds).
Please note that, during development, I found a few parsing issues. I suspect there are more. We'll need to try a few more plugins that register custom post types (see 1 below).
Supported features:
Testing instructions
You can use cpt.wpmt.co to view the books on the site. Please note that not all books can be loaded (see p1768466053646389-slack-C06S1QS55K9).
You can install WP Job Manager on test sites, which registers a "job listing" custom post type.