public/wordpress/wp-content/plugins/wp-courseware/includes/database/db-coupon-meta.php
/**
	 * Update Coupon Meta Field.
	 *
	 * Use the $prev_value parameter to differentiate between
	 * meta fields with the same key and Coupon ID. If the meta
	 * field for the customer does not exist, it will be added.
	 *
	 * @since 4.5.0
	 *
	 * @param int    $coupon_id The Coupon ID.
	 * @param string $meta_key The Coupon Meta Key.
	 * @param mixed  $meta_value The Coupon Meta Value.
	 * @param mixed  $prev_value Optional. Previous value to check before removing.
	 *
	 * @return bool False on failure, True if successful.
	 */
Update Coupon Meta Field.
Use the $prev_value parameter to differentiate between
meta fields with the same key and Coupon ID. If the meta
field for the customer does not exist, it will be added.



@param int    $coupon_id The Coupon ID.
@param string $meta_key The Coupon Meta Key.
@param mixed  $meta_value The Coupon Meta Value.
@param mixed  $prev_value Optional. Previous value to check before removing.

@return bool False on failure, True if successful.
Update Coupon Meta Field . Use the $prev_value parameter to differentiate between meta fields with the same key and Coupon ID . If the meta field for the customer does not exist it will be added . @param int $coupon_id The Coupon ID . @param string $meta_key The Coupon Meta Key . @param mixed $meta_value The Coupon Meta Value . @param mixed $prev_value Optional . Previous value to check before removing . @return bool False on failure True if successful .
public function update_meta( $coupon_id = 0, $meta_key = '', $meta_value, $prev_value = '' ) {
		$coupon_id = $this->sanitize_coupon_id( $coupon_id );
		if ( false === $coupon_id ) {
			return false;
		}
		return update_metadata( 'wpcw_coupon', $coupon_id, $meta_key, $meta_value, $prev_value );
	}
public function update_meta ( $ coupon_id = 0 , $ meta_key = '' , $ meta_value , $ prev_value = '' ) { $ coupon_id = $ this -> sanitize_coupon_id ( $ coupon_id ) ; if ( false === $ coupon_id ) { return false ; } return update_metadata ( 'wpcw_coupon' , $ coupon_id , $ meta_key , $ meta_value , $ prev_value ) ; }
Update Coupon Meta Field.
Update Coupon Meta Field .