Articles on: Developers

Modify optimized HTML output

Modify the final HTML optimized by FlyingPress using the flying_press_optimization:after filter.

The altered HTML will be cached and served to visitors:

add_filter('flying_press_optimization:after', function($html) {
    // Modify $html here
    return $html;
});

Updated on: 18/12/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!