that constant has been deprecated since PHP 8.1, which means you should receive a warning instead of an error.

The PHP manual suggests using htmlspecialchars to address this issue, but you can also consider using FILTER_UNSAFE_RAW as an alternative solution.

Change this:

$screen_name = filter_var( $_GET["page"], FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH );

To this:

$screen_name = filter_var( $_GET["page"], FILTER_UNSAFE_RAW, FILTER_FLAG_STRIP_HIGH );


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer