woocommerce_privacy_erase_personal_data_tokens хук-фильтр . WC 3.4.0
Allow extensions to remove data for tokens and adjust the response.
Использование
add_filter( 'woocommerce_privacy_erase_personal_data_tokens', 'filter_function_name_8406', 10, 2 ); function filter_function_name_8406( $response, $tokens ){ // filter... return $response; }
- $response(массив)
- Array resonse data. Must include messages, num_items_removed, num_items_retained, done.
- $tokens(массив)
- Array of tokens.
Список изменений
С версии 3.4.0 | Введена. |
Где вызывается хук
woocommerce_privacy_erase_personal_data_tokens
woocommerce/includes/class-wc-privacy-erasers.php 410
return apply_filters( 'woocommerce_privacy_erase_personal_data_tokens', $response, $tokens );