WC_Admin_Notices::download_directories_sync_complete()
Notice about the completion of the product downloads sync, with further advice for the site operator.
Method of the class: WC_Admin_Notices{}
Hooks from the method
Return
null
. Nothing (null).
Usage
$result = WC_Admin_Notices::download_directories_sync_complete();
WC_Admin_Notices::download_directories_sync_complete() WC Admin Notices::download directories sync complete code 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'; } }