Wrong OB_PATH_PLUGIN value when we have custom WP_CONTENT_DIR
-
Hi,
I try to create a custom destination plugin and I spent a lot of time for figuring out why it not appearing in the destination select. Eventually I found the defined OB_PATH_PLUGIN constant which define the path to plugins directory.
define( 'OB_PATH_PLUGIN', dirname( getcwd() ) . DS . 'wp-content' . DS . 'plugins' . DS );
This says we use plugins placed under WP root. But when I use custom WP Plugin and Content Directories this is a wrong a approach.
I suggest you change this to use the WP_CONTENT_DIR constant to define this path.
define( 'OB_PATH_PLUGIN', WP_CONTENT_DIR . DS . 'plugins' . DS );
P.S.: I tried to contact You guys on Facebook to get some help but nobody answers me since two weeks…
- The topic ‘Wrong OB_PATH_PLUGIN value when we have custom WP_CONTENT_DIR’ is closed to new replies.