clean_network_cache
Fires immediately after a network has been removed from the object cache.
Description
Parameters (1)
- 0. $id (int)
- Network ID.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'clean_network_cache', $id );
- The following example is for adding a hook callback.
- // define the clean_network_cache callback
- function action_clean_network_cache( $id ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'clean_network_cache', 'action_clean_network_cache', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'clean_network_cache', 'action_clean_network_cache', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /wp-includes/ms-blogs.php
- do_action( 'clean_network_cache', $id );