Automattic\WooCommerce\Internal\Admin

Install::delete_obsolete_notes()protected staticWC 1.0

Delete obsolete notes.

{} Это метод класса: Install{}

Хуки из метода

Возвращает

null. Ничего.

Использование

$result = Install::delete_obsolete_notes();

Код Install::delete_obsolete_notes() WC 6.4.1

protected static function delete_obsolete_notes() {
	$obsolete_notes_names = array(
		'wc-admin-welcome-note',
		'wc-admin-store-notice-setting-moved',
		'wc-admin-store-notice-giving-feedback',
		'wc-admin-learn-more-about-product-settings',
		'wc-admin-onboarding-profiler-reminder',
		'wc-admin-historical-data',
		'wc-admin-review-shipping-settings',
		'wc-admin-home-screen-feedback',
		'wc-admin-effortless-payments-by-mollie',
		'wc-admin-google-ads-and-marketing',
		'wc-admin-marketing-intro',
		'wc-admin-draw-attention',
		'wc-admin-need-some-inspiration',
		'wc-admin-choose-niche',
		'wc-admin-start-dropshipping-business',
		'wc-admin-filter-by-product-variations-in-reports',
		'wc-admin-learn-more-about-variable-products',
		'wc-admin-getting-started-ecommerce-webinar',
		'wc-admin-navigation-feedback',
		'wc-admin-navigation-feedback-follow-up',
	);

	$additional_obsolete_notes_names = apply_filters(
		'woocommerce_admin_obsolete_notes_names',
		array()
	);

	if ( is_array( $additional_obsolete_notes_names ) ) {
		$obsolete_notes_names = array_merge(
			$obsolete_notes_names,
			$additional_obsolete_notes_names
		);
	}

	Notes::delete_notes_with_name( $obsolete_notes_names );
}