AI
1 year ago
AIContent
1 year ago
Assets
4 weeks ago
BlockTypes
1 week ago
Domain
2 months ago
Images
1 year ago
Integrations
2 years ago
Patterns
6 months ago
Payments
5 months ago
Registry
2 years ago
SharedStores
2 months ago
Shipping
7 months ago
Templates
2 months ago
Utils
4 weeks ago
Assets.php
2 years ago
AssetsController.php
4 weeks ago
BlockPatterns.php
7 months ago
BlockTemplatesController.php
7 months ago
BlockTemplatesRegistry.php
10 months ago
BlockTypesController.php
4 weeks ago
DependencyDetection.php
5 months ago
InboxNotifications.php
2 years ago
Installer.php
2 months ago
Library.php
2 years ago
Options.php
2 years ago
Package.php
1 year ago
QueryFilters.php
7 months ago
TemplateOptions.php
1 year ago
InboxNotifications.php
24 lines
| 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 |