action_scheduler/created_table хук-событие . WC 1.0
Использование
add_action( 'action_scheduler/created_table', 'action_function_name_5546', 10, 2 ); function action_function_name_5546( $updated_table, $table ){ // action... }
- $updated_table
- -
- $table
- -
Где вызывается хук
action_scheduler/created_table
woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schema.php 120
do_action( 'action_scheduler/created_table', $updated_table, $table );
Где используется хук в ядре WooCommerce
woocommerce/packages/action-scheduler/classes/ActionScheduler_ListTable.php 511
add_action( 'action_scheduler/created_table', array( $store, 'set_autoincrement' ), 10, 2 );
woocommerce/packages/action-scheduler/classes/ActionScheduler_ListTable.php 518
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 );