apply_filters( 'llms_membership_restricted_post_types', string[] $post_types )

Add llms-membership-restrictions support for the following post types.


Description Description

Adding support for a post type enables the display of the Membership Restriction metabox for each specified post type.

These post types can then be "restricted" to enrollment in the selected memberships.


Top ↑

Parameters Parameters

$post_types

(string[]) Array of post type names.


Top ↑

More Information More Information

Examples Examples

https://gist.github.com/thomasplevy/087d4e1b3eaa7ff6f023c88580faa7ef


Top ↑

Source Source

File: includes/class.llms.post-types.php

View on GitHub



Top ↑

User Contributed Notes User Contributed Notes

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