1. Home
  2. API
  3. Function Reference
  4. Function Reference: wlmapi_unprotect_post

Function Reference: wlmapi_unprotect_post

Un-protects a post.

Parameters

  • post_id (int) – The ID of the post to un-protect

Return

Returns a multi-dimensional array containing operation status.

Example Code

<?php
     $posts = wlmapi_unprotect_post(1);
     print_r($posts);
?>

Example Output

Array
(
    [success] => 1
    [supported_verbs] => Array
        (
            [0] => DELETE
        )

)

Notes

This functions returns WLMAPIMethods::unprotect_post($args) in core/api-helper/class-api-methods.php

Updated on August 14, 2020

Was this article helpful?

Related Articles

Not the solution you were looking for?
Click the link below to submit a support ticket
Submit Ticket