也许一年前,它曾经是有效的。现在我正在尝试使用symlink构建新的插件。但是wordpress没有检测到那个符号链接的插件。
我试过了 ln -s /plugin-source/ /site/wp-content/plugins/plugin-name 我也试过用sudo-ln。但它没有显示在wordpress插件中。当我直接复制它时,效果很好。有人知道为什么符号链接插件没有被最新的wordpress检测到吗?谢谢
ln -s /plugin-source/ /site/wp-content/plugins/plugin-name
使现代化
下面的答案有效。在我的案例中,是osx不允许wordpress从我的桌面访问符号链接插件(不确定是什么原因)。所以我把它移到htdoc目录,它运行得很好。
根据你的评论,在我看来,你似乎试图将其添加为相对路径。您应该能够使用绝对路径使其工作。
sudo ln -s /Users/username/Desktop/wp_plugins/plugin-name /Applications/MAMP/htdocs/site/wp-content/plugins/plugin-name
代替 username 使用您的用户名。它应该能够解决你的问题。
username