esc_html__( 'WP 2FA Settings', 'wp-security-audit-log' ), '2fa' => esc_html__( '2FA', 'wp-security-audit-log' ), ); // combine the two arrays. $objects = array_merge( $objects, $new_objects ); return $objects; } /** * Checks if the WP 2FA is active. * * @return boolean - Is plugin active or not. * * @since 5.0.0 */ public static function is_wp2fa_active() { return ( WP_Helper::is_plugin_active( 'wp-2fa/wp-2fa.php' ) || WP_Helper::is_plugin_active( 'wp-2fa-premium/wp-2fa.php' ) ); } /** * Gets the filename of the plugin this extension is targeting. * * @return string - Plugin filename. * * @since 5.0.0 */ public static function get_plugin_filename(): string { return 'wp-2fa/wp-2fa.php'; } } }