Automattic\WooCommerce\Database\Migrations

MigrationHelper::escape_schema_for_backtick()public staticWC 1.0

Helper method to escape backtick in various schema fields.

{} Это метод класса: MigrationHelper{}

Хуков нет.

Возвращает

Массив. Schema config escaped for backtick.

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

$result = MigrationHelper::escape_schema_for_backtick( $schema_config ): array;
$schema_config(массив) (обязательный)
Schema config.

Код MigrationHelper::escape_schema_for_backtick() WC 6.8.0

public static function escape_schema_for_backtick( array $schema_config ): array {
	array_walk( $schema_config['source']['entity'], array( self::class, 'escape_and_add_backtick' ) );
	array_walk( $schema_config['source']['meta'], array( self::class, 'escape_and_add_backtick' ) );
	array_walk( $schema_config['destination'], array( self::class, 'escape_and_add_backtick' ) );
	return $schema_config;
}