• Resolved doryphores

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

    https://www.ads-software.com/extend/plugins/post-types-order/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nsp-code

    (@nsp-code)

    Thanks for the headup, this is a nice catch.

    Anonymous User 92042

    (@anonymized-92042)

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

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.