h5p / h5p-wordpress-plugin

Adds support for H5P Content in WordPress.
https://wordpress.org/plugins/h5p/
70 stars 75 forks source link

Question: Why is the H5P content stored in a custom table instead of a post type? #184

Closed ptrin closed 4 days ago

ptrin commented 5 days ago

I was looking into the code because I'm curious about the level of effort to extend the plugin to support copying H5P content and storing revisions, and it seems that those features (and others) would be easier to leverage if the H5P content was stored in a custom post type instead of directly in its own table. Is there a reason this approach was used?

icc commented 5 days ago

The answer is simple: The plugin was originally written before the custom post type API was available.

ptrin commented 4 days ago

That makes a lot of sense, I appreciate the quick response :)