Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用受密码保护的子页面插件在我的页面上使用 2.8 Wordpress 的通用密码保护,并且我还在受保护的子页面上包含 PHP 文件,但我想弄清楚如果他们正在查看我需要哪些 PHP 代码输入密码“A”或输入密码“B”的页面
这甚至可能吗?
谢谢!
好的,我使用 is_page() 函数来分配一个变量...不是最好的解决方案,因为我必须将任何新页面添加到 php 文件中,以检查哪些页面进入每个密码,但我只能这样做想出。