delete_transient_(transient) action-hookWP 3.0.0

Fires immediately before a specific transient is deleted.

The dynamic portion of the hook name, $transient, refers to the transient name.

Usage

add_action( 'delete_transient_(transient)', 'wp_kama_delete_transient_action' );

/**
 * Function for `delete_transient_(transient)` action-hook.
 * 
 * @param string $transient Transient name.
 *
 * @return void
 */
function wp_kama_delete_transient_action( $transient ){

	// action...
}
$transient(string)
Transient name.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

delete_transient()
delete_transient_(transient)
wp-includes/option.php 812
do_action( "delete_transient_{$transient}", $transient );

Where the hook is used in WordPress

Usage not found.