i4w_user_has_access

Usage:

This shortcode enables you to check if a user has access to a given page/post, defined by its ID.

It can be useful when used in conjunction with [i4w_get_page] to combine various content elements into a combined page.

[ELSE_user_has_access] conditional branching is supported.

Shortcode nesting is NOT supported.

Parameters:

post_idThe page or post ID for which to check the current user’s access permissions.
Required: Yes.

Example:

[i4w_user_has_access post_id='1234']
  If yes, display this content.
[ELSE_user_has_access]
  Otherwise, display this.
[/i4w_user_has_access]

API:

There is no API function equivalent for this shortcode.