| @@ -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 | * |