rpress_update_payment_meta_

Author: RestroPress 329 views

This filter is applied to use to update the post meta, it is including three parameters.
$meta_key -> the meta key to update.
$meta_value -> the meta value.
$ID ->is used to get id.

function update_payment_meta( $meta_key,$meta_value ) {
// update the meta key and meta value.
update_post_meta( $this->ID, '_rpress_payment_user_email', $meta_value );
$current_meta = $this->get_meta( '_rpress_payment_meta' );
return update_post_meta( $this->ID, $meta_key, $meta_value, $prev_value );
}
add_filter( 'rpress_rpress_update_payment_meta_','update_payment_meta',10,3 );