WC_Admin_Notices::download_directories_sync_complete()public staticWC 1.0

Notice about the completion of the product downloads sync, with further advice for the site operator.

Метод класса: WC_Admin_Notices{}

Возвращает

null. Ничего (null).

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

$result = WC_Admin_Notices::download_directories_sync_complete();

Код WC_Admin_Notices::download_directories_sync_complete() WC 8.7.0

public static function download_directories_sync_complete() {
	$notice_dismissed = apply_filters(
		'woocommerce_hide_download_directories_sync_complete',
		get_user_meta( get_current_user_id(), 'download_directories_sync_complete', true )
	);

	if ( $notice_dismissed ) {
		self::remove_notice( 'download_directories_sync_complete' );
	}

	if ( Users::is_site_administrator() ) {
		include __DIR__ . '/views/html-notice-download-dir-sync-complete.php';
	}
}