

function cyberscales_handle_contact() {
    if (!isset($_POST['cs_contact_nonce']) || !wp_verify_nonce($_POST['cs_contact_nonce'], 'cs_contact_form')) {
        wp_die('Security check failed', 'Error', array('response' => 403));
    }

    $name     = sanitize_text_field($_POST['cs_name'] ?? '');
    $email    = sanitize_email($_POST['cs_email'] ?? '');
    $company  = sanitize_text_field($_POST['cs_company'] ?? '');
    $industry = sanitize_text_field($_POST['cs_industry'] ?? '');
    $services = sanitize_text_field($_POST['cs_services'] ?? '');
    $message  = sanitize_textarea_field($_POST['cs_message'] ?? '');

    $admin_email = get_option('admin_email');
    $subject = 'New CyberScales contact request';
    $body = "Name: $name
Email: $email
Company: $company
Industry: $industry
Services: $services

Message:
$message";
    $headers = array('Reply-To: ' . $email);

    wp_mail($admin_email, $subject, $body, $headers);

    wp_redirect( add_query_arg('cs_submitted', '1', wp_get_referer()) );
    exit;
}
add_action('admin_post_nopriv_cs_contact_form', 'cyberscales_handle_contact');
add_action('admin_post_cs_contact_form', 'cyberscales_handle_contact');
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://cyberscales.in/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://cyberscales.in/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://cyberscales.in/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://cyberscales.in/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://cyberscales.in/wp-sitemap-taxonomies-post_tag-1.xml</loc></sitemap><sitemap><loc>https://cyberscales.in/wp-sitemap-taxonomies-post_format-1.xml</loc></sitemap><sitemap><loc>https://cyberscales.in/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
