before_doing_updates

To run code immediately before an All in One SEO Pack update script (which runs on any plugin update that has database changes), use the action before_doing_updates.

Example:

add_action( ‘before_doing_updates’, ‘callback_function’ );