| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' ); |
| 3 | 3 | |
| 4 | -add_action( 'update_option_' . Imagify_Options::get_instance()->get_option_name(), 'imagify_maybe_delete_partner_on_option_update', 10, 2 ); | |
| 4 | +add_action( 'update_option_imagify_settings', 'imagify_maybe_delete_partner_on_option_update', 10, 2 ); | |
| 5 | 5 | /** |
| 6 | 6 | * After the first API key has been successfully added, make sure the partner ID is deleted. |
| 7 | 7 | * |
| 8 | 8 | * @since 1.6.14 |
| @@ -16,9 +16,9 @@ | ||
| 16 | 16 | imagify_delete_partner(); |
| 17 | 17 | } |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | -add_action( 'update_site_option_' . Imagify_Options::get_instance()->get_option_name(), 'imagify_maybe_delete_partner_on_network_option_update', 10, 3 ); | |
| 20 | +add_action( 'update_site_option_imagify_settings', 'imagify_maybe_delete_partner_on_network_option_update', 10, 3 ); | |
| 21 | 21 | /** |
| 22 | 22 | * After the first API key has been successfully added to the network option, make sure the partner ID is deleted. |
| 23 | 23 | * |
| 24 | 24 | * @since 1.6.14 |