📜  错误:Cookie 被您的浏览器阻止或不支持.您必须启用 cookie 才能使用 WordPress. - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:53.301000             🧑  作者: Mango

代码示例2
you’ll need to open your website’s function.php file. 
 
Then add the following code:
 
setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
if ( SITECOOKIEPATH != COOKIEPATH ) setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);
and then save/upload your functions.php file.


#https://www.fiverr.com/shadabdeveloper