In this article

filter

jetpack_sso_accept_wpcom_2fa

Filter whether to accept WordPress.com 2FA in place of a local Two-Factor prompt during SSO login. Return false to always require the local Two-Factor prompt, even when the user has completed 2FA on WordPress.com.

Parameters

$accept
bool

Whether to accept WP.com 2FA. Default true.

$user_data
object

WordPress.com user data from SSO validation.

$user
WP_User

The local WordPress user.

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.