llms_is_post_restricted_by_drip_settings( int $post_id, int|null $user_id = null )

Determine if a lesson/quiz is restricted by drip settings.


Description Description


Parameters Parameters

$post_id

(Required) WP Post ID of a lesson or quiz.

$user_id

(Optional) WP User ID (will use get_current_user_id() if none supplied). Default null.

Default value: null


Top ↑

Return Return

(int|false) False if the lesson is available. WP Post ID of the lesson if it is not.


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.37.10 Use strict comparison '===' in place of '=='.
3.16.11 Unknown.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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