Skip to content

Instantly share code, notes, and snippets.

@saimonh3
Created October 16, 2019 04:17
Show Gist options
  • Save saimonh3/8e6469663b72ab17b65bf2bf747ba8a1 to your computer and use it in GitHub Desktop.
Save saimonh3/8e6469663b72ab17b65bf2bf747ba8a1 to your computer and use it in GitHub Desktop.
dokan-upgrade-2.9.21.php
<?php
/**
* Update post_author id for shop_orders
*
* @since 2.9.4
*
* @return void
*/
function dokan_update_variation_product_vendor() {
$processor_file = DOKAN_INC_DIR . '/upgrades/background-processes/class_dokan_update_2_9_21_variation_product_vendor.php';
include_once $processor_file;
$processor = new Dokan_Update_2_9_21_Variation_Product_Vendor();
$args = array(
'updating' => 'update_vendor',
'paged' => 0
);
$processor->push_to_queue( $args )->dispatch_process( $processor_file );
}
dokan_update_variation_product_vendor();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment