| @@ -38,8 +38,19 @@ | ||
| 38 | 38 | 'plan_check' => true, |
| 39 | 39 | ) |
| 40 | 40 | ); |
| 41 | 41 | } |
| 42 | + // Add a meta field to the user to track if the donation warning has been dismissed. | |
| 43 | + \register_meta( | |
| 44 | + 'user', | |
| 45 | + 'jetpack_donation_warning_dismissed', | |
| 46 | + array( | |
| 47 | + 'type' => 'boolean', | |
| 48 | + 'single' => true, | |
| 49 | + 'show_in_rest' => true, | |
| 50 | + 'default' => false, | |
| 51 | + ) | |
| 52 | + ); | |
| 42 | 53 | } |
| 43 | 54 | add_action( 'init', __NAMESPACE__ . '\register_block' ); |
| 44 | 55 | |
| 45 | 56 | /** |