PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, December 29, 2021

[FIXED] Wordpress plugin development, symlink not working

 December 29, 2021     macos, mamp, plugins, symlink, wordpress     No comments   

Issue

It used to works before maybe a year ago. now i'm trying to build new plugin using symlink. but wordpress not detecting that symlinked plugin.

i tried ln -s /plugin-source/ /site/wp-content/plugins/plugin-name i've also tried using 'sudo ln'. but it's not showing in wordpress plugin. when i copy it directly it works fine. anyone know why symlinked plugin not detected by latest wordpress? Thanks!

Update

answer below works. in my case it was osx not letting wordpress to access symlinked pluging from my desktop (not sure what's reason). so i move it to htdoc directory and it worked fine.


Solution

According to your comment, it seems to me that you have tried to add it as a relative path. You should be able to make it work using the absolute path.

sudo ln -s /Users/username/Desktop/wp_plugins/plugin-name /Applications/MAMP/htdocs/site/wp-content/plugins/plugin-name

Replace username with your username. It should be able to fix your problem.



Answered By - Tharindu Pramuditha
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing