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.

{} It's a method of the class: WC_Admin_Notices{}

Return

null. Nothing.

Usage

$result = WC_Admin_Notices::download_directories_sync_complete();

Code of WC_Admin_Notices::download_directories_sync_complete() WC 6.6.1

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';
	}
}