woocommerce_hide_download_directories_sync_complete хук-фильтрWC 1.0

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

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

add_filter( 'woocommerce_hide_download_directories_sync_complete', 'wp_kama_woocommerce_hide_download_directories_sync_complete_filter' );

/**
 * Function for `woocommerce_hide_download_directories_sync_complete` filter-hook.
 * 
 * @param  $user_meta 
 *
 * @return 
 */
function wp_kama_woocommerce_hide_download_directories_sync_complete_filter( $user_meta ){

	// filter...
	return $user_meta;
}
$user_meta
-

Где вызывается хук

WC_Admin_Notices::download_directories_sync_complete()
woocommerce_hide_download_directories_sync_complete
woocommerce/includes/admin/class-wc-admin-notices.php 504-507
$notice_dismissed = apply_filters(
	'woocommerce_hide_download_directories_sync_complete',
	get_user_meta( get_current_user_id(), 'download_directories_sync_complete', true )
);

Где используется хук в WooCommerce

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