WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Post Types Order] The plugin should respect custom WP_PLUGIN_DIR setting

[Resolved] [Plugin: Post Types Order] The plugin should respect custom WP_PLUGIN_DIR setting

  • doryphores
    Member

    @doryphores

    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');

    http://wordpress.org/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 ‘[Resolved] [Plugin: Post Types Order] The plugin should respect custom WP_PLUGIN_DIR setting’ is closed to new replies.