File manager - Edit - /home/verseaumee/blueversion/wp-content/plugins/give/src/TestData/Framework/Provider/RandomDonation.php
Back
<?php namespace Give\TestData\Framework\Provider; /** * Returns a random Donation ID from the donations table. */ class RandomDonation extends RandomProvider { public function __invoke() { global $wpdb; $donations = $wpdb->get_col( "SELECT id FROM {$wpdb->posts} WHERE post_type = 'give_payment' AND post_status = 'publish'", ARRAY_A ); return $this->faker->randomElement($donations); } }
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings