• Resolved acccrobat

    (@quacrobat)


    Hello, I’m a paying KeyCDN customer and using CDN Enabler.

    I updated from 1.09 to latest version, and it broke my custom code. I can’t figure out how to replace the following code using the new API, now that rewrite_the_content doesn’t exist anymore in the plugin:

    
    if (class_exists('CDN_Enabler')) {
        $html = \CDN_Enabler::rewrite_the_content($html);
    }
    

    Thanks for your urgent help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anonymous User 16850768

    (@anonymized-16850768)

    CDN_Enabler_Engine::rewriter( string $contents ): string can be used instead. Any string that you want to have rewritten can be sent through that, whether that’s HTML, JSON, or just a URL.

    Thread Starter acccrobat

    (@quacrobat)

    brilliant, that worked. thanks!

    Anonymous User 16850768

    (@anonymized-16850768)

    You’re welcome! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘What replaces rewrite_the_content ??’ is closed to new replies.