تابع wc_update_profile_last_update_time بروزرسانی اطلاعات کاربر ( مشتری )

تابع ووکامرسی wc_update_profile_last_update_time – بروزرسانی اطلاعات کاربر ( مشتری )
Syntax – سینتکس
wc_update_profile_last_update_time( (int) $user_id, (array) $old );
Parameters – پارامتر ها (2)
- 1- $user_id (int)
- 2- $old (array)
Usage – نحوه استفاده
if ( !function_exists( 'wc_update_profile_last_update_time' ) ) {
require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-user-functions.php';
}
// The user that was updated.
$user_id = -1;
// The profile fields pre-change.
$old = array();
// NOTICE! Understand what this does before running.
$result = wc_update_profile_last_update_time($user_id, $old);
Defined – محل تعریف
/includes/wc-user-functions.php
function wc_update_profile_last_update_time( $user_id, $old ) {
wc_set_user_last_update_time( $user_id );
}
versions – نسخه ها
از نسخه : 2.6.0
نسخه فعلی : 3.0.6
دیگر نسخه ها : 3.0.6 , 3.0.5 , 3.0.4 , 3.0.3 , 3.0.2
ارسال نظر