WordPress at Your Fingertips
function is not described

WC_Install::run_update_callback() public WC 3.6.0

Run an update callback when triggered by ActionScheduler.

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

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Install::run_update_callback( $update_callback );
$update_callback(string) (required)
Callback name.

Changelog

Since 3.6.0 Introduced.

Code of WC_Install::run_update_callback() WC 5.6.0

public static function run_update_callback( $update_callback ) {
	include_once dirname( __FILE__ ) . '/wc-update-functions.php';

	if ( is_callable( $update_callback ) ) {
		self::run_update_callback_start( $update_callback );
		$result = (bool) call_user_func( $update_callback );
		self::run_update_callback_end( $update_callback, $result );
	}
}