[Plugin: Post Types Order] The plugin should respect custom WP_PLUGIN_DIR setting
-
You can configure WordPress to have plugins in a different location. Post Types Order doesn’t respect this setting. The fix is trivial:
At the top of the plugin file, replace:
define('CPTPATH', ABSPATH.'wp-content/plugins/post-types-order'); define('CPTURL', get_option('siteurl').'/wp-content/plugins/post-types-order');
with:
define('CPTPATH', WP_PLUGIN_DIR.'/post-types-order'); define('CPTURL', WP_PLUGIN_URL.'/post-types-order');
https://www.ads-software.com/extend/plugins/post-types-order/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: Post Types Order] The plugin should respect custom WP_PLUGIN_DIR setting’ is closed to new replies.