WP Error Page Customisation

if (!defined(‘RD_WP_DIE_BRANDER’)) { define(‘RD_WP_DIE_BRANDER’, true); } function rd_wp_die_user_is_admin(): bool { return is_user_logged_in() && current_user_can(‘manage_options’); } function rd_wp_die_is_home_request(): bool { $request_uri = isset($_SERVER[‘REQUEST_URI’]) ? wp_unslash($_SERVER[‘REQUEST_URI’]) : ‘/’; $request_path = wp_parse_url($request_uri, PHP_URL_PATH); $home_path = wp_parse_url(home_url(‘/’), PHP_URL_PATH); $request_path = ‘/’ . ltrim((string) $request_path,…Continue reading