llms_get_restriction_message( array $restriction )
Retrieve a message describing the reason why content is restricted.
Description Description
Accepts an associative array of restriction data that can be retrieved from llms_page_restricted().
This function doesn’t handle all restriction types but it should in the future. Currently it’s being utilized for tooltips on lesson previews and some messages output during LLMS_Template_Loader handling redirects.
Parameters Parameters
- $restriction
-
(Required) Array of data from
llms_page_restricted()
.
Return Return
(string)
Source Source
File: includes/functions/llms.functions.access.php
Changelog Changelog
Version | Description |
---|---|
3.2.4 | |
3.16.12 | Introduced. |