deleted_transient
Fires after a transient is deleted.
Использование
add_action( 'deleted_transient', 'wp_kama_deleted_transient_action' );
/**
* Function for `deleted_transient` action-hook.
*
* @param string $transient Deleted transient name.
*
* @return void
*/
function wp_kama_deleted_transient_action( $transient ){
// action...
}
- $transient(строка)
- Deleted transient name.
Список изменений
| С версии 3.0.0 | Введена. |
Где вызывается хук
deleted_transient
wp-includes/option.php 1414
do_action( 'deleted_transient', $transient );