📂 FileMgr
📍
/home/coemyoza/public_html/wp-content/plugins/give/src/Repositories
✏️ Edit File: /home/coemyoza/public_html/wp-content/plugins/give/src/Repositories/PaymentsRepository.php
⬅ Kembali
<?php namespace Give\Repositories; use Give_Payment; class PaymentsRepository { /** * Retrieves a donation for the given payment ID * * @since 2.8.0 * * @param string $paymentId * * @return Give_Payment */ public function getDonationByPayment($paymentId) { $payments = give_get_payments( [ 'meta_key' => '_give_payment_transaction_id', 'meta_value' => $paymentId, 'number' => 1, ] ); return empty($payments) ? null : $payments[0]; } }
💾 Simpan File
Batal
⬅ Naik ke src
1 item
Nama
Tipe
Ukuran
Diubah
Aksi
🐘
PaymentsRepository.php
php
591 B
2022-11-29 18:00
✏️ Edit
👁️ View
🗑 Hapus