Currently my plugins are getting uploaded to public_html/sitename/wp-content/plugins
instead of public_html/wp-content/plugins
. Is there any way that I can change the path where word press uploads the plugins?
I had moved my site to the root folder and hence this issue arose.
You can change the Plugins directory using constants defined in
wp-config.php
:But wait!
If the need to define these paths originates from moving your installation from a subdirectory to the document root, your problem is very likely that you didn’t make that move properly. Please reference this Codex entry about giving WordPress its own directory.