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