WC_Install::run_update_callback_end( string $callback, bool $result )

Triggered when a callback has ran.


Description Description


Parameters Parameters

$callback

(Required) Callback name.

$result

(Required) Return value from callback. Non-false need to run again.


Top ↑

Source Source

File: includes/class-wc-install.php

	protected static function run_update_callback_end( $callback, $result ) {
		if ( $result ) {
			WC()->queue()->add(
				'woocommerce_run_update_callback',
				array(
					'update_callback' => $callback,
				),
				'woocommerce-db-updates'
			);
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.6.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.