0297-functions-graphql-format-name


目录


title: graphql_format_name docType: function plugin: wp-graphql

graphql_format_name

graphql_format_name( string $name, string $replacement = '_', string $regex = '/[^A-Za-z0-9_]/i' ): string;

Formats a string for use as a GraphQL name. Per the GraphQL spec, characters in names are limited to Latin ASCII letter, digits, or underscores.

Parameters

Return

Source

function graphql_format_name( string $name, string $replacement = '_', string $regex = '/[^A-Za-z0-9_]/i' ): string {

版本号 #2
由 壳壳虫 创建于 2026-08-29 15:36:26 UTC
由 壳壳虫 更新于 2026-08-29 15:36:26 UTC