%s %s

', esc_html__( 'AHS - Image to WebP Error:', 'ahs-image-to-webp-converter' ), esc_html( $message ) ); }); return; } // Load the main class and initialize. require_once AHSITW_PATH . 'includes/class-plugin.php'; AHSITW_Plugin::init(); } add_action( 'plugins_loaded', 'ahsitw_init' ); /** * Plugin Activation Hook. */ register_activation_hook( __FILE__, 'ahsitw_activate' ); function ahsitw_activate() { if ( false === get_option( 'AHSITW_quality' ) ) { add_option( 'AHSITW_quality', 80 ); } if ( false === get_option( 'AHSITW_conversion_count' ) ) { add_option( 'AHSITW_conversion_count', 0 ); } } /** * Plugin Deactivation Hook. */ register_deactivation_hook( __FILE__, 'ahsitw_deactivate' ); function ahsitw_deactivate() { wp_clear_scheduled_hook( 'AHSITW_daily_maintenance' ); delete_transient( 'AHSITW_unconverted_count_rough' ); }