diff --git a/plugins/registry.js b/plugins/registry.js index cc5039b6c7c0..f44b2eb68fb4 100644 --- a/plugins/registry.js +++ b/plugins/registry.js @@ -255,6 +255,16 @@ export default class PluginRegistry { }); } + // Unregister a component that provided a custom body for posts with a specific type. + // Accepts a string id. + // Returns undefined in all cases. + unregisterPostTypeComponent(componentId) { + store.dispatch({ + type: ActionTypes.REMOVED_PLUGIN_POST_COMPONENT, + id: componentId, + }); + } + // Register a reducer against the Redux store. It will be accessible in redux state // under "state['plugins-']" // Accepts a reducer. Returns undefined.