WC_Install::run_update_callback_end()protected staticWC 3.6.0

Triggered when a callback has ran.

Method of the class: WC_Install{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Install::run_update_callback_end( $callback, $result );
$callback(string) (required)
Callback name.
$result(true|false) (required)
Return value from callback. Non-false need to run again.

Changelog

Since 3.6.0 Introduced.

WC_Install::run_update_callback_end() code WC 9.4.2

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