Created
October 16, 2020 14:04
-
-
Save johnalarcon/12745e6675f4d6a64ad8e37076b7bb68 to your computer and use it in GitHub Desktop.
Apply action after ClassicPress plugin update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($options['action'] == 'update') { | |
if ($options['type'] == 'plugin') { | |
if (!empty($options['plugins'])) { | |
if (in_array(plugin_basename(__FILE__), $options['plugins'], true)) { | |
// Do stuff. | |
} | |
} | |
} | |
} | |
} | |
add_action('upgrader_process_complete', 'codepotent_upgrade_completed', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment