id ) || empty( $webhook->url ) ) { return; } // Update the webhook. This will update the events on the server. try { RegisteredWebhook::update(); } catch ( \Exception $exception ) { wp_die( 'Webhook migration failed. Error: ' . esc_attr( $exception->getMessage() ) ); } } }