action_scheduler/created_table хук-событиеWC 1.0

Использование

add_action( 'action_scheduler/created_table', 'wp_kama_action_scheduler_created_table_action', 10, 2 );

/**
 * Function for `action_scheduler/created_table` action-hook.
 * 
 * @param  $updated_table 
 * @param  $table         
 *
 * @return void
 */
function wp_kama_action_scheduler_created_table_action( $updated_table, $table ){

	// action...
}
$updated_table
-
$table
-

Где вызывается хук

ActionScheduler_Abstract_Schema::update_table()
action_scheduler/created_table
woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schema.php 138
do_action( 'action_scheduler/created_table', $updated_table, $table );

Где используется хук в WooCommerce

woocommerce/packages/action-scheduler/classes/ActionScheduler_ListTable.php 551
add_action( 'action_scheduler/created_table', array( $store, 'set_autoincrement' ), 10, 2 );
woocommerce/packages/action-scheduler/classes/ActionScheduler_ListTable.php 558
remove_action( 'action_scheduler/created_table', array( $store, 'set_autoincrement' ), 10 );
woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php 56
add_action( 'action_scheduler/created_table', [ $this, 'set_autoincrement' ], 10, 2 );
woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php 59
remove_action( 'action_scheduler/created_table', [ $this, 'set_autoincrement' ], 10 );