array( 'title' => __('Wordpress forms', 'all-in-one-wp-security-and-firewall'), ), 'woo-captcha' => array( 'title' => __('Woocommerce forms', 'all-in-one-wp-security-and-firewall'), 'display_condition_callback' => array('AIOWPSecurity_Utility', 'is_woocommerce_plugin_active'), ), 'other-plugins' => array( 'title' => __('Other forms', 'all-in-one-wp-security-and-firewall'), 'display_condition_callback' => array('AIOWPSecurity_Utility', 'is_other_form_plugins_active'), ), ); $aio_wp_security->include_template('wp-admin/brute-force/captcha-provider.php', false, array('default_captcha' => $default_captcha, 'supported_captchas' => $supported_captchas, 'captcha_themes' => $captcha_themes, 'captcha_theme' => $captcha_theme)); $templates = apply_filters('aiowps_modify_captcha_settings_template', $templates); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Nonce check occurred outside of template. $subtab = isset($_GET['subtab']) ? sanitize_text_field(wp_unslash($_GET['subtab'])) : ''; ?>
>

    $template) { // Check if the current title is the first title $title = $template['title']; $class = 'class="aiowps-template-list-item'; $class .= ($key === $subtab || $title === $first_title) ? " aiowps-active" : ''; $class .= '"'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- No user input for $class. echo '
  • ' . esc_html($title) . '
  • '; } ?>
$template) { $aio_wp_security->include_template('wp-admin/brute-force/partials/' . esc_attr($key) . '.php'); } ?>