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