Tag Archives | comments

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 […]

Function Reference: wlmapi_add_posts_comments_to_level

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 […]

Function Reference: wlmapi_get_level_commented_posts

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 ( […]