[wp-trac] [WordPress Trac] #33534: Activation hook doesn't get called with the new plugin update?
WordPress Trac
noreply at wordpress.org
Tue Aug 25 10:00:55 UTC 2015
#33534: Activation hook doesn't get called with the new plugin update?
-----------------------------+-----------------------------
Reporter: amonad | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 4.2.3
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
With the new update mechanism, where the user can update the plugin from
the plugin list screen itself. The activation hook doesn't seem to get
triggered with this approach. Has this feature been deprecated because
previously when the plugin was updated it used to follow these steps:
1) Deactivate plugin
2) Delete old plugin files
3) Install new plugin files
4) Activate the plugin.
I'm asking this because I need to add some new features in the new version
of the plugin and that feature needs to save some default parameters in
the db. I'm putting this code in the activation code which gets called
when the plugin is activated. It's not working this way. Is there a new
way I should handle such things in future?
Please help.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33534>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list