site_transient_(transient) хук-фильтр . WP 2.9.0
Filters the value of an existing site transient.
The dynamic portion of the hook name, $transient, refers to the transient name.
Использование
add_filter( 'site_transient_(transient)', 'filter_function_name_7681', 10, 2 ); function filter_function_name_7681( $value, $transient ){ // filter... return $value; }
- $value(смешанный)
- Value of site transient.
- $transient(строка)
- Transient name.
Список изменений
С версии 2.9.0 | Введена. |
С версии 4.4.0 | The $transient parameter was added. |
Где вызывается хук
site_transient_(transient)
wp-includes/option.php 1899
return apply_filters( "site_transient_{$transient}", $value, $transient );