clean_network_cache
Action HookDescription
Fires immediately after a network has been removed from the object cache.Hook Information
File Location |
wp-includes/ms-network.php
View on GitHub
|
Hook Type | Action |
Line Number | 96 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$id
|
Network ID. |
Usage Examples
Basic Usage
<?php
// Hook into clean_network_cache
add_action('clean_network_cache', 'my_custom_function', 10, 1);
function my_custom_function($id) {
// Your custom code here
}
Source Code Context
wp-includes/ms-network.php:96
- How this hook is used in WordPress core
<?php
91 *
92 * @since 4.6.0
93 *
94 * @param int $id Network ID.
95 */
96 do_action( 'clean_network_cache', $id );
97 }
98
99 wp_cache_set_last_changed( 'networks' );
100 }
101
PHP Documentation
<?php
/**
* Fires immediately after a network has been removed from the object cache.
*
* @since 4.6.0
*
* @param int $id Network ID.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-includes/ms-network.php
Related Hooks
Related hooks will be displayed here in future updates.