1. Home
  2. Knowledge Base
  3. API
  4. Function Reference
  5. Function Reference: wlmapi_remove_category_from_level

Function Reference: wlmapi_remove_category_from_level

Removes a membership level's access to the specified category.

Parameters

  • level_id (int) – The ID of the level to remove the category from
  • category_id (int) – The ID of the category to remove access from

Return

Returns a multi-dimensional array containing operation status.

Example Code

<?php
     $categories = wlmapi_remove_category_from_level(1340726008, 7);
     print_r($categories);
?>

Example Output

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

)

Notes

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

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support