user_firstname . ' ' . $current_user->user_lastname;
$user_email = $current_user->user_email;

// Get website's name and URL
$site_name = get_bloginfo('name');
$site_url = get_bloginfo('url');

// Get website's privacy policy page content
$privacy_policy_page_id = get_option('privacy_policy_page_id');
$privacy_policy_page = get_post($privacy_policy_page_id);
$privacy_policy_page_content = apply_filters('the_content', $privacy_policy_page->post_content);

// Generate privacy policy page HTML
$privacy_policy_page_html = '

';
$privacy_policy_page_html .= '

Privacy Policy

';
$privacy_policy_page_html .= '

This privacy policy applies to ' . $site_name . ' (' . $site_url . ') and explains how we use any personal information we collect about you when you use our website.

';
$privacy_policy_page_html .= '

Who we are

';
$privacy_policy_page_html .= '

' . $site_name . ' is owned and operated by ' . $user_name . ' (' . $user_email . ').

';
$privacy_policy_page_html .= '

What personal data we collect and why we collect it

';
$privacy_policy_page_html .= $privacy_policy_page_content;
$privacy_policy_page_html .= '

';

return $privacy_policy_page_html;
}

// Add shortcode to display privacy policy page on website
add_shortcode('privacy_policy', 'generate_privacy_policy_page');

?>