WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Notes_Run_Db_Update::update_in_progress_notice() private WC 1.0

Update the existing note with $note_id with information about the db upgrade being in progress.

This is the second out of 3 notices displayed to the user.

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

Хуков нет.

Возвращает

Null. Ничего.

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

$result = WC_Notes_Run_Db_Update::update_in_progress_notice( $note_id );
$note_id(число) (обязательный)
Note id to update.

Код WC_Notes_Run_Db_Update::update_in_progress_notice() WC 4.5.2

woocommerce/includes/admin/notes/class-wc-notes-run-db-update.php
<?php
private static function update_in_progress_notice( $note_id ) {
	// Same actions as in includes/admin/views/html-notice-updating.php. This just redirects, performs no action, so without nonce.
	$pending_actions_url = admin_url( 'admin.php?page=wc-status&tab=action-scheduler&s=woocommerce_run_update&status=pending' );
	$cron_disabled       = Constants::is_true( 'DISABLE_WP_CRON' );
	$cron_cta            = $cron_disabled ? __( 'You can manually run queued updates here.', 'woocommerce' ) : __( 'View progress →', 'woocommerce' );

	$note = new WC_Admin_Note( $note_id );
	$note->set_title( __( 'WooCommerce database update in progress', 'woocommerce' ) );
	$note->set_content( __( 'WooCommerce is updating the database in the background. The database update process may take a little while, so please be patient.', 'woocommerce' ) );

	$note->clear_actions();
	$note->add_action(
		'update-db_see-progress',
		$cron_cta,
		$pending_actions_url,
		'unactioned',
		false
	);

	$note->save();
}