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


Top ↑

Return Return

(array) Restriction check result data.


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.16.11 Unknown.
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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