• I need to call my custom function after clear all cache. “w3tc_flush_all” hook to trigger my custom function before clear the cache. I need after cache cleared the cache. Please let me know any hooks available?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Curious, why don’t you simply add your custom function call into the hook queue? Since you need it to come before the actual real call to w3tc_flush_all i would figure something like the following with a low # for the priority would make it call sooner:

    add_action( 'w3tc_flush_all', 'my_custom_function', 1, 1 );

    Plugin Contributor gidomanders

    (@gidomanders)

    @fistfullofcrisco he wants to call if AFTER purge all caches, but than your code still works with a higher priority number like 99. Also __return_false is shorter than your own function ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘call my custom function after clear all cache’ is closed to new replies.