get_level_field() public method

Retrieve a field for a subscription level
Since: 1.5
public get_level_field ( $level_id, $field = '' )
function rcp_get_subscription_access_level($id)
{
    $levels = new RCP_Levels();
    $level = $levels->get_level_field($id, 'level');
    if ($level) {
        return $level;
    }
    return false;
}
 /**
  *  render the custom column content
  *
  * @since 1.0
  * @param $column_name string The name of the column being rendered
  * @param $post_id int The post ID a column is being rendered for
  * @return void
  */
 public function render_columns($column_name, $post_id)
 {
     if ('edd_rcp_discount' !== get_post_type($post_id)) {
         return;
     }
     if (!class_exists('RCP_Payments')) {
         return;
     }
     $levels_db = new RCP_Levels();
     $level_id = get_post_meta($post_id, '_edd_rcp_discount_subscription', true);
     switch ($column_name) {
         case 'subscription':
             echo $levels_db->get_level_field($level_id, 'name');
             break;
         case 'amount':
             echo absint(get_post_meta($post_id, '_edd_rcp_discount_amount', true)) . '%';
             break;
         case 'uses':
             echo absint(get_post_meta($post_id, '_edd_rcp_discount_use_count', true));
             break;
     }
 }