Hardcoded plugins folder path
-
@phamtungpth: WP Pipes uses the constant
OB_PATH_PLUGINfor the path to the WordPress site plugins folder and is hardcoded to a specific path ('wp-content' . DS . 'plugins' . DS).
However, the path can be indeed different, like on roots.io Bedrock WordPress sites, but on any WordPress site because the plugins folder path is configurable.
This causes WP Pipes not to find any WP Pipes extensions from installed plugins.The
WP_PLUGIN_DIRconstant can be used instead which always has the correct path for any WordPress site configuration.So
define( 'OB_PATH_PLUGIN', ABSPATH . 'wp-content' . DS . 'plugins' . DS );
has to be replaced with
define( 'OB_PATH_PLUGIN', WP_PLUGIN_DIR );
OrWP_PLUGIN_DIRdirectly used instead ofOB_PATH_PLUGIN.
The topic ‘Hardcoded plugins folder path’ is closed to new replies.