delete_site_transient_(transient)
Fires immediately before a specific site transient is deleted.
The dynamic portion of the hook name, $transient, refers to the transient name.
Usage
add_action( 'delete_site_transient_(transient)', 'wp_kama_delete_site_transient_action' ); /** * Function for `delete_site_transient_(transient)` action-hook. * * @param string $transient Transient name. * * @return void */ function wp_kama_delete_site_transient_action( $transient ){ // action... }
- $transient(string)
- Transient name.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
delete_site_transient_(transient)
wp-includes/option.php 2444
do_action( "delete_site_transient_{$transient}", $transient );