| 1 |
<?php |
| 2 |
namespace Automattic\WooCommerce\Blocks; |
| 3 |
|
| 4 |
use Automattic\WooCommerce\Admin\Notes\Note; |
| 5 |
use Automattic\WooCommerce\Admin\Notes\Notes; |
| 6 |
|
| 7 |
/** |
| 8 |
* A class used to display inbox messages to merchants in the WooCommerce Admin dashboard. |
| 9 |
* |
| 10 |
* @package Automattic\WooCommerce\Blocks |
| 11 |
* @since x.x.x |
| 12 |
*/ |
| 13 |
class InboxNotifications { |
| 14 |
|
| 15 |
const SURFACE_CART_CHECKOUT_NOTE_NAME = 'surface_cart_checkout'; |
| 16 |
|
| 17 |
/** |
| 18 |
* Deletes the note. |
| 19 |
*/ |
| 20 |
public static function delete_surface_cart_checkout_blocks_notification() { |
| 21 |
Notes::delete_notes_with_name( self::SURFACE_CART_CHECKOUT_NOTE_NAME ); |
| 22 |
} |
| 23 |
} |
| 24 |
|