PluginProbe
WooCommerce / 11.1.0-rc.2
WooCommerce v11.1.0-rc.2
11.1.0 11.1.0-rc.2 11.1.0-rc.1 11.1.0-beta.2 11.1.0-beta.1 11.0.1 11.0.0 11.0.0-rc.3 11.0.0-rc.2 11.0.0-rc.1 11.0.0-beta.2 11.0.0-beta.1 10.9.4 10.9.3 10.9.2 10.9.1 10.9.0 10.9.0-rc.1 10.9.0-beta.2 10.9.0-beta.1 10.8.1 10.8.0 10.8.0-rc.1 10.8.0-beta.2 10.8.0-beta.1 All 648 releases
woocommerce / src / Blocks / InboxNotifications.php
InboxNotifications.php
24 lines 583 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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