get_webhooks_ids() as $id ) { $webhook = wc_get_webhook( $id ); if ( $webhook && Mintveo_WC_Settings::ENDPOINT === $webhook->get_delivery_url() ) { $webhook->set_status( 'paused' ); $webhook->save(); } } } delete_option( 'mintveo_wc_version' ); wp_clear_scheduled_hook( 'mintveo_catalog_push' ); wp_clear_scheduled_hook( 'mintveo_heartbeat' ); } ); /** * Tell the merchant why nothing is happening, rather than failing silently. */ function mintveo_wc_missing_woocommerce_notice() { echo '

'; esc_html_e( 'Mintveo needs WooCommerce to be active. Activate WooCommerce to resume attributing orders.', 'mintveo' ); echo '

'; }