I have custom plugin and I want to do something when my plugin save in admin panel of Joomla 4 . How can I override save method in plugin ?

  • I think you would get an onContentBeforeSave event being triggered when you tried to save the changes in the admin plugin form. If you wrote another plugin which listened for that, would that meet your needs? Commented Jan 22 at 19:33

1 Answer 1


You could create a Content plugin and use the onContentBeforeSave method like Robbie Jackson suggested.

If for some unknown reason it does not work, you could always write a system plugin and use onAfterInitialise or onAfterRoute and do something there. Only use this when you cannot use anything else.

Do you use an IDE like PHPStorm or VisualStudio? If you combine it with XDebug, you could set break points, and step through Joomla's code to find the places that you could trigger to do something with your code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.