WordPress.org

Forums

Types
[resolved] Use within mu-plugin (3 posts)

  1. Will Haley
    Member
    Posted 1 year ago #

    While I've been using your plugin for a long time and love it, I've recently started placing it in the mu-plugin directory b/c it has become so vital to the sites I'm building. However, I've noticed that when I do this, the url paths the plugin builds are incorrect.

    The issue is line 18 of the wpcf.php file.
    define( 'WPCF_RELPATH', plugins_url() . '/' . basename( WPCF_ABSPATH ) );
    if you changed it to
    define( 'WPCF_RELPATH', plugins_url( null, __FILE__ ) );

    I think that will correct the issue and still give the expected results regardless of which plugin directory the plugin in placed into.

    Thank you for your time and the great plugin.

    http://wordpress.org/plugins/types/

  2. Srdjan
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for suggestion. We're considering that change.

  3. Will Haley
    Member
    Posted 1 year ago #

    Thanks for the consideration. I'll hit resolve this topic.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Types
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags