get_pmpro_membership_level_meta

The Paid Memberships Pro get pmpro membership level meta function.

Description

get_pmpro_membership_level_meta( $level_id, $key, (constant) $single = false ); 

Parameters (3)

0. $level_id
The level id.
1. $key
The key.
2. $single — Optional. (constant) => false
The single.

Usage

  1. if ( !function_exists( 'get_pmpro_membership_level_meta' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'paid-memberships-pro/includes/functions.php'; 
  3.  
  4. // The level id. 
  5. $level_id = null; 
  6.  
  7. // The key. 
  8. $key = null; 
  9.  
  10. // The single. 
  11. $single = false; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = get_pmpro_membership_level_meta($level_id, $key, $single); 
  15.  

Defined (1)

The function is defined in the following location(s).

/includes/functions.php  
  1. function get_pmpro_membership_level_meta($level_id, $key, $single = false) { 
  2. return get_metadata('pmpro_membership_level', $level_id, $key, $single);