我是WordPress开发的新手。我只是对after_setup_theme和init钩感到困惑
#1
after_setup_theme在init之前运行, 通常用于在验证用户身份之前初始化主题设置/选项。根据食典:
这是可用于主题的第一个动作挂钩, 在激活主题的functions.php文件加载后立即触发。
另一方面, init在用户通过身份验证后运行:
通常由插件用来初始化。目前, 当前用户已经通过身份验证。
来源:
https://www.srcmini02.com/67225.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_40148.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57