Articles on: Developers

Before and after purging all pages

Execute custom code before and after purging all pages in FlyingPress:

Before purging:
add_action('flying_press_purge_pages:before', function() {
    // Insert your code here
});


After purging:
add_action('flying_press_purge_pages:after', function() {
    // Insert your code here
});

Updated on: 18/12/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!