WC_Install::run_update_callback() – Run an update callback when triggered by ActionScheduler.

You appear to be a bot. Output may be restricted

Description

Run an update callback when triggered by ActionScheduler.

Usage

WC_Install::run_update_callback( $update_callback );

Parameters

$update_callback
( string ) required – Callback name.

Returns

void

Source

File name: woocommerce/includes/class-wc-install.php
Lines:

1 to 9 of 9
  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 );
    }
  }
 

 View on GitHub View on Trac