Gives a membership level access to the specified post’s comments according to the specified arguments. Parameters level_id (int) – The ID of the level to add post comments to args (array) – An array of accepted arguments specified below: Parameter Description Required Default ContentIds (array) An array of post IDs to add to the membership level Required Return […]
Tag Archives | comments
Function Reference: wlmapi_get_level_commented_posts
Categories: API Documentation, Functions
Retrieves all posts with comments associated with the specified level. Parameters level_id (int) – The ID of the level to retrieve posts from Return Returns a multi-dimensional array containing data for each post. Example Code <?php $posts = wlmapi_get_level_commented_posts(1340726008); print_r($posts); ?> Example Output Array ( [success] => 1 [comments] => Array ( [post] => Array ( […]
Search
Recently Added
- Function Reference: wlmapi_get_member_by
- Tutorial: Authenticating With the WishList Member API From a Non-PHP Application (iOS, Android, .NET,etc)
- Tutorial: How to Delete a Membership Level Using the WishList Member API
- Tutorial: How to Update a Membership Level Using the WishList Member API
- Tutorial: How to Create a Membership Level Using the WishList Member API
- Tutorial: How to Get a Membership Level Using the WishList Member API
- Tutorial: How to Get All Membership Levels Using the WishList Member API
- Content Hooks
- Membership Level Hooks
- Shopping Cart Hooks
Function Reference: wlmapi_remove_comments_from_level
Removes a membership level’s access to the specified post’s comments. Parameters level_id (int) – The ID of the level to remove the post’s comments from post_id (int) – The ID of the post to remove access from Return Returns a multi-dimensional array containing operation status. Example Code <?php $posts = wlmapi_remove_post_comments_from_level(1340726008, 1); print_r($posts); ?> Example Output Array […]