Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @manojsaini2012,

    It isn’t possible without PHP code. You should override value of blog URL (option ossdl_off_blog_url). If you have basic PHP knowledge then I could send instructions how you can do it. Also, I’d like to you test new version of “CDN plugin” – https://github.com/Automattic/wp-super-cache/pull/596/files.

    Related to PR #596 – I’m thinking that I could call scossdl_off_get_options() later in init action. After this, I could trigger filter ‘ossdl_off_blog_url’ at each request and you can use this filter to set right blog URL (eg. you can add filter in functions.php).

    Please send me feedback and I’ll update PR #596 and send exact code for filter.

    Regards,
    Saša

    Hello @stodorovic

    I am interested in this solution as well. Could you please provide more information about this?

    Thank you very much.

    Regards
    Emanuele

    PR #596 is merged and it should be part of next release. You can apply changes from #596 and test it. Filter ossdl_off_blog_url is triggering at each request (if it exists). You can use this filter to overwrites static option value. Something like this:

    add_filter( 'ossdl_off_blog_url', function ( $url ) { return site_url(); } );
    

    I didn’t test it because I don’t have this kind of installation. Function site_url should return proper URL.

    Works like a charm! Many thanks for the one-liner.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Regrading wp super cache cdn with wpml’ is closed to new replies.