RCP_Levels::add_meta PHP Method

add_meta() public method

Add meta data field to a subscription level.
Since: 2.6
public add_meta ( integer $level_id, string $meta_key = '', mixed $meta_value, boolean $unique = false ) : boolean
$level_id integer Subscription level ID.
$meta_key string Metadata name.
$meta_value mixed Metadata value.
$unique boolean Optional, default is false. Whether the same key should not be added.
return boolean False for failure. True for success.
    public function add_meta($level_id = 0, $meta_key = '', $meta_value, $unique = false)
    {
        return add_metadata('level', $level_id, $meta_key, $meta_value, $unique);
    }