purge hooks | WordPress.org

[ad_1]

Hi – in api.cls.php you provide a list of purge hooks. I tried this one:

add_action('litespeed_purge_all', __NAMESPACE__ . '\Purge::purge_all');

//test
add_action('litespeed_purge_all', 'test'.'\Purge::purge_all');
function test(){
echo 'test';
}

Nothing’s happening. How can i make use of this hook? By the way in the list mentioned above i couldn’t find a hook for «do_action(‘litespeed_purged_all’)». Thanks.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer