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
(
[0] => Array
(
[ID] => 1
[name] => Hello World
[_more_] => /levels/1340726008/posts/1
)
[1] => Array
(
[ID] => 96
[name] => Auto Reg
[_more_] => /levels/1340726008/posts/96
)
)
)
[supported_verbs] => Array
(
[0] => GET
[1] => POST
)
)
Notes
This functions returns WLMAPIMethods::get_level_commented_posts($level_id) in core/api-helper/class-api-methods.php
