Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#2916 closed enhancement (wontfix)

More enhancement to plugin system

Reported by: pcdinh Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.1
Component: Optimization Keywords: plugin activation
Focuses: Cc:


The current plugin system is really good. However, I think that it would be better if we can extend it to require each plugin to define:

1.beforeActivationAction(): do something before activate a plugin, such as altering a table, copying or moving some files...
2.afterDeactivationAction(): return the original status of the system.

Do you think that would be neccessary?



Change History (2)

comment:1 @masquerade9 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

See: register_activation_hook(), register_deactivation_hook(). They are not required, and should never be, a simple plugin shouldn't have to feature bloat, but they are there for those who need them.

comment:2 @Nazgul8 years ago

  • Milestone 2.1 deleted
Note: See TracTickets for help on using tickets.