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)


Top ↑

Return Return

(bool)


Top ↑

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'];
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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