• Resolved sflwa

    (@sflwa)


    I know from what I’ve seen this is a known issue – I was hoping someone has a solution / workaround.

    In an effort to reduce the amount of files on the server I have moved a number of my plugins to a “shared” folder and I’m using symbolic links to reference them.

    This is working GREAT, however there is 1 plugin which uses Redux Framework and while the plugin itself works, the “options” screen is broken due to path issues and I would love a way to fix it. – Fortunately the import settings work and once the plugin is set I never have to touch it.

    Thanks for anyone who can point me in the right direction

    https://www.ads-software.com/plugins/redux-framework/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Dōvy Paukstys

    (@dovyp)

    Lead dev of Redux here.

    Because there’s no way in PHP to detect the expected path, you’re going to have to add your own add_filter accordingly.

    `
    self::$_url = apply_filters( “redux/_url”, self::$_url );
    self::$_dir = apply_filters( “redux/_dir”, self::$_dir );
    self::$_is_plugin = apply_filters( “redux/_is_plugin”, self::$_is_plugin );
    `

    Thread Starter sflwa

    (@sflwa)

    Dovy – Thanks….I’m a bit lost – I was added what’s below but it didn’t work… if you could point me in the direction

    add_filter('redux/_url', 'ReduxSymLink',10,3);
    
     function ReduxSymLink(){
    self::$_url = apply_filters( "redux/_url", self::$_url );
    self::$_dir = apply_filters( "redux/_dir", self::$_dir );
    self::$_is_plugin = apply_filters( "redux/_is_plugin", self::$_is_plugin );
     }
    Plugin Contributor Dōvy Paukstys

    (@dovyp)

    add_filter(‘redux/_url’, ‘ReduxSymLink’,10,3);

    function ReduxSymLinkURL(){
         $url = "https://real.com/url/redux/";
         return $url;
     }

    You don’t need to set the $_is_plugin for this. ??

    Thread Starter sflwa

    (@sflwa)

    Dovy –

    I know this should be obvious – but what file do I put this in? the theme functions.php

    The actual plugin file??

    Thank you soooooo much for your help and guidance with this.

    Philip

    Thread Starter sflwa

    (@sflwa)

    Dovy & Others who may find this post..

    1) Redux Framework 3.5.4.3 – WORKS FINE via a Symbolic Link with NO filters required
    2) In my issue, I had a plugin which is using Redux Framework for the Options Panel
    If I install BOTH Redux Framework AND the plugin (Admin Branding) via Symbolic Link

    it 100% works fine and I get the added benefit of having the updated version of Redux Framework this way

    The only downside is the slight additional number of files / disk space as I actually have Redux Framework twice (very small impact on system)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Redux Framework and Symbolic Link’ is closed to new replies.