ActionScheduler_Abstract_Schema::update_table()
Update the schema for the given table
Метод класса: ActionScheduler_Abstract_Schema{}
Хуки из метода
Возвращает
null
. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->update_table( $table );
- $table(строка) (обязательный)
- The name of the table to update.
Код ActionScheduler_Abstract_Schema::update_table() ActionScheduler Abstract Schema::update table WC 9.8.2
private function update_table( $table ) { require_once ABSPATH . 'wp-admin/includes/upgrade.php'; $definition = $this->get_table_definition( $table ); if ( $definition ) { $updated = dbDelta( $definition ); foreach ( $updated as $updated_table => $update_description ) { if ( strpos( $update_description, 'Created table' ) === 0 ) { do_action( 'action_scheduler/created_table', $updated_table, $table ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores } } } }