如果wordpress帖子/页面包含特定的“自定义字段”匹配项,是否可以创建自定义密码页面设计(通过注入html / css)?参见下面的基本逻辑。
(if post/page is password protected) && (if post/page contains customfield == "designme")
{
echo "html and css here";
}
我发现这两个页面可能会有所帮助:
https://themeskills.com/how-to-password-protect-wordpress-page-post/
https://wpsites.net/web-design/add-custom-class-to-style-password-protected-posts/