llms_page_restricted( int $post_id, int|null $user_id = null )
Determine if content should be restricted.
Description Description
Called during "template_include" to determine if redirects or template overrides are in order.
Parameters Parameters
- $post_id
-
(Required) WordPress Post ID of the content.
- $user_id
-
(Optional) WP User ID (will use get_current_user_id() if none supplied). Default
null
.Default value: null
Return Return
(array) Restriction check result data.
Source Source
File: includes/functions/llms.functions.access.php
Changelog Changelog
Version | Description |
---|---|
3.16.11 | Unknown. |
1.0.0 | Introduced. |