Function Reference: wlmapi_unprotect_category

Un-protects a category.

Parameters

  • category_id (int) – The ID of the category to un-protect

Return

Returns a multi-dimensional array containing operation status.

Example Code

<?php
     $categories = wlmapi_unprotect_category(7);
     print_r($categories);
?>

Example Output

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

)

Notes

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