llms_parse_password_reset_cookie()

Parses the password reset cookie.


Description Description

This is the cookie set when a user uses the password reset link found in a reset password email. The query string vars in the link (user login and reset key) are parsed and stored in this cookie.


Top ↑

Return Return

(array|WP_Error) On success, returns an associative array containing the keys "key" and "login", on error returns a WP_Error.


Top ↑

Source Source

File: includes/functions/llms.functions.person.php

 * @see LLMS_Student->mark_favorite()
 *
 * @param int    $user_id     WP User ID.
 * @param int    $object_id   WP Post ID of the object to mark/unmark as favorite.
 * @param string $object_type The object type, currently only 'lesson'.
 * @return bool
 */
function llms_mark_favorite( $user_id, $object_id, $object_type ) {
	$student = new LLMS_Student( $user_id );
	return $student->mark_favorite( $object_id, $object_type );
}

/**
 * Mark a lesson as unfavorite.
 *
 * @since 7.5.0
 *
 * @see LLMS_Student->mark_unfavorite()
 *
 * @param int    $user_id     WP User ID.
 * @param int    $object_id   WP Post ID of the object to mark/unmark as favorite.
 * @param string $object_type The object type, currently only 'lesson'.
 * @return bool
 */
function llms_mark_unfavorite( $user_id, $object_id, $object_type ) {
	$student = new LLMS_Student( $user_id );
	return $student->mark_unfavorite( $object_id, $object_type );


Top ↑

Changelog Changelog

Changelog
Version Description
5.1.2 Fixed typos in error messages.
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.