| @@ -1893,5 +1893,15 @@ | ||
| 1893 | 1893 | public function get_jetpack_recovery_mode_status() { |
| 1894 | 1894 | $status = get_option( 'jetpack_recovery_mode_status' ); |
| 1895 | 1895 | return is_array( $status ) ? $status : null; |
| 1896 | 1896 | } |
| 1897 | + | |
| 1898 | + /** | |
| 1899 | + * Whether WordPress.com accounts must have two-step authentication to log in through SSO. | |
| 1900 | + * | |
| 1901 | + * @return bool | |
| 1902 | + */ | |
| 1903 | + public function get_jetpack_sso_require_two_step() { | |
| 1904 | + /** This filter is documented in projects/packages/connection/src/sso/class-helpers.php */ | |
| 1905 | + return (bool) apply_filters( 'jetpack_sso_require_two_step', get_option( 'jetpack_sso_require_two_step', false ) ); | |
| 1906 | + } | |
| 1897 | 1907 | } |