4

I have a simple test plugin - a folder called tester containing a file called tester.php that contains only this:

<?php
/*
Plugin Name: My tester
*/
?>

I have a copy of WordPress running locally on my Mac. When the plugin is in the plugins directory it appears in the Admin list of plugins.

When I move the plugin directory elsewhere and symlink to it, it doesn't show up.

I've done similar with a theme, and WordPress happily uses that. From what I've read this should now work with plugins too. Am I missing something?

(WordPress 4.8)

3

What have you done to add the symlink?

In using VVV I am able to symlink using your plugin tester code:

    # ssh into vagrant
    $ vagrant ssh
    # create symlink
    $ sudo ln -s /srv/www/wordpress-default/wp-content/testing-dir/tester /srv/www/wordpress-default/wp-content/plugins/tester
  • I hadn't thought of making the symlink from within Vagrant! Doing that (in my case sudo ln -s /var/www/tester /var/www/public/wp/wp-content/plugins/tester) seems to work, thanks! It's odd that I could make a symlink for a theme on my Mac, not in Vagrant. – Phil Gyford Jul 24 '17 at 16:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.