ActionScheduler_Abstract_Schema::update_table()privateWC 1.0

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() WC 8.7.0

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 );
			}
		}
	}
}