LLMS_REST_API_Keys_Controller::validate_user_exists( int $value )

Validate submitted user IDs are real user ids.


Parameters Parameters

$value

(int) (Required) User-submitted value.


Top ↑

Return Return

(boolean)


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/server/class-llms-rest-api-keys-controller.php

		$user = get_user_by( 'id', $value );
		return $user ? true : false;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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