| @@ -235,9 +235,15 @@ | ||
| 235 | 235 | * |
| 236 | 236 | * @return bool |
| 237 | 237 | */ |
| 238 | 238 | public function should_skip_check( Woocommerce $woo, Buddypress $buddypress ): bool { |
| 239 | - return false; | |
| 239 | + // Ultimate Member (UM) handles its own form validation through these hooks; skip | |
| 240 | + // reCAPTCHA to avoid conflicting with UM's validation flow. | |
| 241 | + if ( ! class_exists( 'UM' ) ) { | |
| 242 | + return false; | |
| 243 | + } | |
| 244 | + | |
| 245 | + return doing_action( 'um_submit_form_errors_hook_login' ) || doing_action( 'um_submit_account_details' ); | |
| 240 | 246 | } |
| 241 | 247 | |
| 242 | 248 | /** |
| 243 | 249 | * Verify response for a specific form. |