PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 1.7.0.9 All 211 releases
← All changes | includes/users/class-charitable-donor.php +10 -3 1.7.0.11 → 1.8.13 View file →
@@ -3,9 +3,9 @@
3 3 * Donor model.
4 4 *
5 5 * @package Charitable/Classes/Charitable_Donor
6 6 * @author David Bisset
7 - * @copyright Copyright (c) 2022, WP Charitable LLC
7 + * @copyright Copyright (c) 2023, WP Charitable LLC
8 8 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
9 9 * @since 1.0.0
10 10 * @version 1.6.54
11 11 */
@@ -86,8 +86,17 @@
86 86 */
87 87 protected $last_donation;
88 88
89 89 /**
90 + * Whether the donor is anonymous.
91 + *
92 + * @since 1.8.3.1
93 + *
94 + * @var boolean
95 + */
96 + public $is_anonymous;
97 +
98 + /**
90 99 * Donor meta.
91 100 *
92 101 * @since 1.4.0
93 102 *
@@ -346,9 +355,8 @@
346 355 *
347 356 * @return string
348 357 */
349 358 public function get_name() {
350 - // echo 'donor idname:'; print_r( $this );
351 359 $name = esc_html(
352 360 trim(
353 361 sprintf( '%s %s', $this->get_donor_meta( 'first_name' ), $this->get_donor_meta( 'last_name' ) )
354 362 )
@@ -407,9 +415,8 @@
407 415 * as a square image, so this is used for both height and width.
408 416 * @return string
409 417 */
410 418 public function get_avatar( $size = 100 ) {
411 - // echo $this->get_user()->get_avatar( $size ) . '----';
412 419
413 420 /**
414 421 * Filter the donor avatar.
415 422 *