Docket Cache 26.04.12 has 36 actions and 24 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Docket Cache fires an action
add_action( 'docketcache/action/switchsite', function( $arg1, $nv ) {
// Your code runs here.
}, 10, 2 );
// Change a value Docket Cache is about to use
add_filter( 'docketcache/filter/active/cronbot', function( $action ) {
// Change $action here.
return $action;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
apply_filters( 'docketcache/filter/active/cronbot', $action ); -
apply_filters( 'docketcache/filter/runevent/cronbot', false ); -
do_action( 'docketcache/action/switchsite', false, $nv ); -
apply_filters( 'docketcache/filter/view/nosponsor', false ); -
do_action( 'docketcache/action/cleanuppost', $ok, $result ); -
do_action( 'docketcache/action/configimport', 'docket-configimportok' === $response ); -
do_action( 'docketcache/action/configreset', $result ); -
do_action( 'docketcache/action/connect/cronbot', $result ); -
do_action( 'docketcache/action/countcachesize' ); -
do_action( 'docketcache/action/disable/objectcache', $result ); -
do_action( 'docketcache/action/disconnect/cronbot', $result ); -
do_action( 'docketcache/action/dismiss/objectcache', $result ); -
do_action( 'docketcache/action/enable/objectcache', $result ); -
do_action( 'docketcache/action/flush/file/advcpost', $ok, $result ); -
do_action( 'docketcache/action/flush/file/mocache', $ok, $result ); -
do_action( 'docketcache/action/flush/file/objectcache', $result, $filename ); -
do_action( 'docketcache/action/flush/file/ocprecache', $ok, $result ); -
do_action( 'docketcache/action/flush/file/transient', $ok, $result ); -
do_action( 'docketcache/action/flush/log/objectcache', $result ); -
do_action( 'docketcache/action/flush/objectcache', $result ); -
do_action( 'docketcache/action/flush/opcache', $result ); -
do_action( 'docketcache/action/garbagecollector', $ok, $result ); -
do_action( 'docketcache/action/nwdcx/throwable', $name, $error ); -
docketcache/action/option
actiondo_action( 'docketcache/action/option', $ok, [ 'key' => $nx, 'value' => $nv, 'name' => $nk, 'action' => $action, 'response' => $response, ] ); -
do_action( 'docketcache/action/pong/cronbot', $result ); -
do_action( 'docketcache/action/preload/objectcache' ); -
do_action( 'docketcache/action/runevent/cronbot', $result ); -
do_action( 'docketcache/action/runeventnow/cronbot', $result ); -
do_action( 'docketcache/action/runeventuno/cronbot', $result ); -
do_action( 'docketcache/action/saveoption', $name, $value, $ret ); -
do_action( 'docketcache/action/update/objectcache', $result ); -
do_action( 'docketcache/action/updatewpconfig', $result ); -
do_action( 'docketcache/action/view/resources' ); -
apply_filters( 'docketcache/filter/cache_http_response_bypass_url', $hosts ); -
apply_filters( 'docketcache/filter/check/cronbot', false ); -
apply_filters( 'docketcache/filter/garbagecollector', true ); -
apply_filters( 'docketcache/filter/optionkeys', $data ); -
apply_filters( 'docketcache/filter/postcache/posttype', $this->allow_posttype ); -
apply_filters( 'docketcache/filter/reqaction/runaction', $action, $param, $option_name, $option_value ); -
apply_filters( 'docketcache/filter/reqaction/screennotice', $token, $option_name, $option_value, $kx ); -
apply_filters( 'docketcache/filter/reqaction/token', $keys ); -
apply_filters( 'docketcache/filter/resc/boxmsg', $html, $msg, $type, $is_dismiss, $is_bold, $is_hide ); -
apply_filters( 'docketcache/filter/resc/spinner', $icon ); -
apply_filters( 'docketcache/filter/view/render', $file, $index ); -
apply_filters( 'docketcache/filter/view/tooltips', $info ); -
apply_filters( 'docketcache/filter/wpconfig/runtime', $code, $runtime ); -
edit_term_taxonomy
actiondo_action( 'edit_term_taxonomy', $tt_id, $taxonomy ); -
edited_term_taxonomy
actiondo_action( 'edited_term_taxonomy', $tt_id, $taxonomy ); -
https_local_ssl_verify
filterapply_filters( 'https_local_ssl_verify', false ); -
https_ssl_verify
filterapply_filters( 'https_ssl_verify', true ); -
load_textdomain
actiondo_action( 'load_textdomain', $this->domain, $this->mofile );
Generated from Docket Cache's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: