woocommerce_user_last_update_fields хук-фильтр . WC 2.6.0
Hooks into the update user meta function to set the user last updated timestamp.
Использование
add_filter( 'woocommerce_user_last_update_fields', 'filter_function_name_8601' ); function filter_function_name_8601( $meta_id ){ // filter... return $meta_id; }
- $meta_id(число)
- ID of the meta object that was changed.
Список изменений
С версии 2.6.0 | Введена. |
Где вызывается хук
woocommerce_user_last_update_fields
woocommerce/includes/wc-user-functions.php 756
$keys_to_track = apply_filters( 'woocommerce_user_last_update_fields', array( 'first_name', 'last_name' ) );