delete_transient_(transient)
Fires immediately before a specific transient is deleted.
The dynamic portion of the hook name, $transient, refers to the transient name.
Использование
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(строка)
- Transient name.
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
delete_transient_(transient)
wp-includes/option.php 1359
do_action( "delete_transient_{$transient}", $transient );