WordPress.org

Forums

Post Types Order
[resolved] The plugin should respect custom WP_PLUGIN_DIR setting (3 posts)

  1. doryphores
    Member
    Posted 4 years ago #

    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/

  2. nsp-code
    Member
    Plugin Author

    Posted 4 years ago #

    Thanks for the headup, this is a nice catch.

  3. Kenn Wilson
    Member
    Posted 3 years ago #

    Just ran into the same problem with Post Types Order 1.5.1. The hard-coded "wp-content/plugins" path is still an issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic