Browse: Home / Functions /

ld_course_access_from_update

ld_course_access_from_update( int $course_id,  int $user_id,  string|int $access = '',  boolean $is_gmt = false )

Updates the course access time for a user.


Description #


Parameters #

$course_id

(int) (Required) Course ID for update.

$user_id

(int) (Required) User ID for update.

$access

(string|int) (Optional) Value can be a date string (YYYY-MM-DD hh:mm:ss or integer value.

Default value: ''

$is_gmt

(boolean) (Optional) True if the access value is GMT or false if it is relative to site timezone.

Default value: false


Return #

(boolean) Returns true if the value is updated successfully.


Source #

File: includes/course/ld-course-user-functions.php


Changelog #

Changelog
Version Description
3.0.0 Introduced.