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().


Top ↑

Return Return

(string)


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.2.4
3.16.12 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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