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

  1. Will Haley
    Posted 2 years 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.


  2. Srdjan
    Posted 2 years ago #

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

  3. Will Haley
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Toolset Types
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic