set_transient_(transient) хук-событие . WP 3.0.0
Fires after the value for a specific transient has been set.
The dynamic portion of the hook name, $transient, refers to the transient name.
Использование
add_action( 'set_transient_(transient)', 'action_function_name_9665', 10, 3 ); function action_function_name_9665( $value, $expiration, $transient ){ // action... }
- $value(смешанный)
- Transient value.
- $expiration(число)
- Time until expiration in seconds.
- $transient(строка)
- The name of the transient.
Список изменений
С версии 3.0.0 | Введена. |
С версии 3.6.0 | The $value and $expiration parameters were added. |
С версии 4.4.0 | The $transient parameter was added. |
Где вызывается хук
set_transient_(transient)
wp-includes/option.php 925
do_action( "set_transient_{$transient}", $value, $expiration, $transient );