pre_set_site_transient_(transient) хук-фильтр . WP 3.0.0
Filters the value of a specific site transient before it is set.
The dynamic portion of the hook name, $transient, refers to the transient name.
Использование
add_filter( 'pre_set_site_transient_(transient)', 'filter_function_name_6967', 10, 2 ); function filter_function_name_6967( $value, $transient ){ // filter... return $value; }
- $value(смешанный)
- New value of site transient.
- $transient(строка)
- Transient name.
Список изменений
С версии 3.0.0 | Введена. |
С версии 4.4.0 | The $transient parameter was added. |
Где вызывается хук
pre_set_site_transient_(transient)
wp-includes/option.php 1931
$value = apply_filters( "pre_set_site_transient_{$transient}", $value, $transient );