Is it possible extend a strapi core plugin from a custom plugin?

Hi everybody,
I’m trying to extend the strapi content-manager plugin and I’d like to know if it’s possible extend it from my custom plugin.

I added a strapi-server.ts file into src/extensions/content-manager and it works but, it does not if I use the same folder structure into the plugin (ex: src/plugins/my-plugin/extensions/content-manager/strapi-server.ts).

It can be achieved?

Basically I have a custom plugin that creates a new content-type handled by Strapi content manager but I would like add some related new logics for extend content-manager and I would like that everything is handled by my plugin.

Thanks in advance.

1 Like

I had the same question and managed to do it in the register.ts of the custom plugin:

export default ({ strapi }: { strapi: Strapi }) => {
  // Use `strapi.plugins["content-manager"]` to extend the functionality.
};
1 Like