Retrieves all posts that have been protected.
Parameters
There are no parameters for this function
Return
Returns a multi-dimensional array containing data for each protected post.
Example Code
<?php
$posts = wlmapi_get_protected_posts();
print_r($posts);
?>
Example Output
Array
(
[success] => 1
[posts] => Array
(
[post] => Array
(
[0] => stdClass Object
(
[ID] => 1
[name] => Hello world!
)
[1] => stdClass Object
(
[ID] => 62
[name] => Another Post with Everything In It
)
[2] => stdClass Object
(
[ID] => 96
[name] => Auto Reg
)
)
)
[supported_verbs] => Array
(
[0] => GET
[1] => POST
)
)
Notes
This functions returns WLMAPIMethods::get_protected_posts($level_id) in core/api-helper/class-api-methods.php
