llms_is_page_restricted( int $post_id, int $user_id )
Get a boolean out of llms_page_restricted for easy if checks
Description Description
Parameters Parameters
- $post_id
-
(int) (Required) WordPress Post ID of the
- $user_id
-
(int) (Optional) user id (will use get_current_user_id() if none supplied)
Return Return
(bool)
Source Source
File: includes/functions/llms.functions.access.php
function llms_is_page_restricted( $post_id, $user_id ) { $restrictions = llms_page_restricted( $post_id, $user_id ); return $restrictions['is_restricted']; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |