---
title: "Using The Membership Level Meta API"
source: "https://docs.nexcess.com/software/kadence/restrict-content-pro/using-the-membership-level-meta-api/"
description: "Coming soon: Restrict Content Pro is becoming Kadence Memberships. You may see both names used while we update the product, documentation, and customer experien…"
vertical: "Software"
area: "Restrict Content Pro"
date: "2023-04-20"
last_modified: "2026-08-12"
---

# Using The Membership Level Meta API

**Coming soon:** Restrict Content Pro is becoming Kadence Memberships. You may see both names used while we update the product, documentation, and customer experience.

Note: This is part of the developer docs and is considered custom code. Unfortunately, we cannot provide support for custom code at this time as we do not have the additional resources that would be necessary to provide support for custom code. If you need assistance with this, please reach out to our list of consultants for further assistance: https://codeable.io/developers/restrict-content-pro/ Restrict Content Pro version 2.6 introduced a metadata API for membership levels. This allows developers to store metadata that is directly associated with particular membership levels. This API works nearly identical to the standard WordPress metadata API. global $rcp\_levels\_db; // Add metadata $rcp\_levels\_db->add\_meta( $level\_id = 0, $key = ”, $value = ”, $unique = true ); // Update metadata $rcp\_levels\_db->update\_meta( $level\_id = 0, $key = ”, $value = ”, $previous\_value = ” ); // Retrieve metadata $rcp\_levels\_db->get\_meta( $level\_id = 0, $key = ”, $single = true ); // Delete metadata $rcp\_levels\_db->delete\_meta( $level\_id = 0, $key = ”, $value = ” ); Version 3.1 also introduced new helper functions. These functions are just a different way of doing the exact same thing as above: // Add metadata rcp\_add\_membership\_level\_meta( $level\_id, $meta\_key, $meta\_value, $unique = false ); // Update metadata rcp\_update\_membership\_level\_meta( $level\_id, $meta\_key, $meta\_value, $prev\_value = ” ); // Retrieve metadata rcp\_get\_membership\_level\_meta( $level\_id, $key = ”, $single = false ); // Delete metadata rcp\_delete\_membership\_level\_meta( $level\_id, $meta\_key, $meta\_value = ” ); Please note: All of these examples serve as a guideline and are here for your convenience. We do not provide support for troubleshooting or modifying these and we do not provide support for any custom development. If you need help with any of these examples, consider hiring a developer.
