WordPress at Your Fingertips
function is not described

WC_Install::run_update_callback_end() protected WC 3.6.0

Triggered when a callback has ran.

{} It's a method of the class: WC_Install{}

No Hooks.

Return

null. Nothing.

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.

Code of WC_Install::run_update_callback_end() WC 5.7.0

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