| @@ -188,8 +188,10 @@ | ||
| 188 | 188 | |
| 189 | 189 | $quickwebp_settings = new Quickwebp_Settings( $this->get_plugin_name(), $this->get_version() ); |
| 190 | 190 | $this->loader->add_action( 'admin_enqueue_scripts', $quickwebp_settings, 'enqueue_scripts_styles' ); |
| 191 | 191 | $this->loader->add_action( 'admin_menu', $quickwebp_settings, 'add_settings_menu' ); |
| 192 | + $this->loader->add_action( 'admin_init', $quickwebp_settings, 'dismiss_avif_notice' ); | |
| 193 | + $this->loader->add_action( 'admin_notices', $quickwebp_settings, 'render_avif_notice' ); | |
| 192 | 194 | $this->loader->add_filter( 'plugin_action_links', $quickwebp_settings, 'add_settings_link', 10, 2 ); |
| 193 | 195 | $this->loader->add_filter( 'sanitize_option_quickwebp_settings_conversion_display_webp_mode', $quickwebp_settings, 'add_rewrite_rules', 5 ); |
| 194 | 196 | $this->loader->add_filter( 'sanitize_option_quickwebp_settings_conversion_display_webp_mode', $quickwebp_settings, 'sanitize_display_mode_for_consistency', 10, 3 ); |
| 195 | 197 | |
| @@ -224,9 +226,10 @@ | ||
| 224 | 226 | $this->loader->add_action( 'init', $quickwebp_surecart, 'init_surecart' ); |
| 225 | 227 | $this->loader->add_action( 'admin_enqueue_scripts', $quickwebp_surecart, 'enqueue_scripts_styles' ); |
| 226 | 228 | |
| 227 | 229 | $quickwebp_migration = new Quickwebp_Migration(); |
| 228 | - $this->loader->add_action( 'init', $quickwebp_migration, 'init_migration' ); | |
| 230 | + $this->loader->add_action( 'admin_init', $quickwebp_migration, 'init_migration' ); | |
| 231 | + $this->loader->add_action( 'quickwebp_optimization_stats_migration_hook', $quickwebp_migration, 'migrate_optimization_stats_batch' ); | |
| 229 | 232 | } |
| 230 | 233 | |
| 231 | 234 | /** |
| 232 | 235 | * Register all of the hooks related to the public-facing functionality |