delete_pmpro_membership_level_meta

The Paid Memberships Pro delete pmpro membership level meta function.

Description

delete_pmpro_membership_level_meta( $level_id, $meta_key, (string) $meta_value = '' ); 

Parameters (3)

0. $level_id
The level id.
1. $meta_key
The meta key.
2. $meta_value — Optional. (string) => ''
The meta value.

Usage

  1. if ( !function_exists( 'delete_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 meta key. 
  8. $meta_key = null; 
  9.  
  10. // The meta value. 
  11. $meta_value = ''; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = delete_pmpro_membership_level_meta($level_id, $meta_key, $meta_value); 
  15.  

Defined (1)

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

/includes/functions.php  
  1. function delete_pmpro_membership_level_meta($level_id, $meta_key, $meta_value = '') {  
  2. return delete_metadata('pmpro_membership_level', $level_id, $meta_key, $meta_value);