pronamic / wp-pay-core

Core components for the WordPress payment processing library. This library is used in the WordPress plugin Pronamic Pay: https://www.pronamicpay.com/, but also allows other plugin developers to set up a payment plugin.
https://www.wp-pay.org/
GNU General Public License v3.0
27 stars 3 forks source link

Don't show upgrade notice on fresh installs. #94

Closed remcotolsma closed 1 year ago

remcotolsma commented 1 year ago

Ideally, all extensions should pass all of the following arguments:

'version_option_name'    => 'pronamic_pay_mollie_version',
'db_version_option_name' => 'pronamic_pay_mollie_db_version',

Each integration should already have a version number stored in the database after a clean install. That is the only way to determine whether or not an upgrade message should be shown.