apply_filters ( 'jetpack_force_2fa', bool $force_2fa )

Filter to include Force 2FA feature.<p>By default, <code>manage_options</code> users are forced when enable. The capability can be modified with the <code>jetpack_force_2fa_cap</code> filter.</p> <p>To enable the feature, add the following code: add_filter( 'jetpack_force_2fa', '__return_true' );</p>

Source file: modules/sso.php

View in GitHub

Parameters

$force_2fa

(bool) Whether to force 2FA or not.


Changelog

Since: Jetpack 12.7


How to use this hook

See Using actions and filters to customize Jetpack.

Notes

Have a note to contribute?