/** * Sanitize meta values before they are persisted to the database. * * @param mixed $value * @param string $key * @return mixed * @access public * @since 1.0.0 * @deprecated 1.4.0 */ public function sanitize_meta($value, $key) { charitable_get_deprecated()->deprecated_function(__METHOD__, '1.4.0', 'charitable_sanitize_donation_meta()'); return charitable_sanitize_donation_meta($value, $key); }
/** * Save the gateway's transaction ID * * @param string $value * @return bool * @access public * @since 1.4.6 */ public function set_gateway_transaction_id($value) { $key = '_gateway_transaction_id'; $value = charitable_sanitize_donation_meta($value, $key); return update_post_meta($this->donation_id, $key, $value); }