You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/AcfGraphQLFieldType.php
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -104,8 +104,8 @@ public function get_admin_field_settings( array $field, Settings $settings ) {
104
104
$default_admin_settings = [];
105
105
106
106
$default_admin_settings['show_in_graphql'] = [
107
-
'label' => __( 'Show in GraphQL', 'wp-graphql-acf' ),
108
-
'instructions' => __( 'Whether the field should be queryable via GraphQL. NOTE: Changing this to false for existing field can cause a breaking change to the GraphQL Schema. Proceed with caution.', 'wp-graphql-acf' ),
107
+
'label' => __( 'Show in GraphQL', 'wpgraphql-acf' ),
108
+
'instructions' => __( 'Whether the field should be queryable via GraphQL. NOTE: Changing this to false for existing field can cause a breaking change to the GraphQL Schema. Proceed with caution.', 'wpgraphql-acf' ),
109
109
'name' => 'show_in_graphql',
110
110
'type' => 'true_false',
111
111
'ui' => 1,
@@ -115,13 +115,13 @@ public function get_admin_field_settings( array $field, Settings $settings ) {
'instructions' => __( 'The description of the field, shown in the GraphQL Schema. Should not include any special characters.', 'wpgraphql-acf' ),
120
120
'name' => 'graphql_description',
121
121
'type' => 'text',
122
122
'ui' => true,
123
123
'default_value' => null,
124
-
'placeholder' => __( 'Explanation of how this field should be used in the GraphQL Schema', 'wp-graphql-acf' ),
124
+
'placeholder' => __( 'Explanation of how this field should be used in the GraphQL Schema', 'wpgraphql-acf' ),
125
125
'conditions' => [
126
126
'field' => 'show_in_graphql',
127
127
'operator' => '==',
@@ -130,14 +130,14 @@ public function get_admin_field_settings( array $field, Settings $settings ) {
130
130
];
131
131
132
132
$default_admin_settings['graphql_field_name'] = [
133
-
'label' => __( 'GraphQL Field Name', 'wp-graphql-acf' ),
134
-
'instructions' => __( 'The name of the field in the GraphQL Schema. Should only contain numbers and letters. Must start with a letter. Recommended format is "snakeCase".', 'wp-graphql-acf' ),
133
+
'label' => __( 'GraphQL Field Name', 'wpgraphql-acf' ),
134
+
'instructions' => __( 'The name of the field in the GraphQL Schema. Should only contain numbers and letters. Must start with a letter. Recommended format is "snakeCase".', 'wpgraphql-acf' ),
135
135
'name' => 'graphql_field_name',
136
136
'type' => 'text',
137
137
'ui' => true,
138
138
'required' => false,
139
139
// we don't allow underscores if the value is auto formatted
'instructions' => __( 'Whether the field should be Non-Null in the GraphQL Schema. <br/><br/><strong>Use with caution.</strong> Only check this if you can guarantee there will be data stored for this field on all objects that have this field. i.e. the field should be required and should have data entered for all previous entries with this field. Unchecking this, if already checked, is considered a breaking change to the GraphQL Schema.', 'wp-graphql-acf' ),
'instructions' => __( 'Whether the field should be Non-Null in the GraphQL Schema. <br/><br/><strong>Use with caution.</strong> Only check this if you can guarantee there will be data stored for this field on all objects that have this field. i.e. the field should be required and should have data entered for all previous entries with this field. Unchecking this, if already checked, is considered a breaking change to the GraphQL Schema.', 'wpgraphql-acf' ),
@@ -190,7 +190,7 @@ public function graphql_types_ajax_callback(): void {
190
190
publicfunctionregister_meta_boxes(): void {
191
191
add_meta_box(
192
192
'wp-graphql-acf-meta-box',
193
-
__( 'GraphQL', 'wp-graphql-acf' ),
193
+
__( 'GraphQL', 'wpgraphql-acf' ),
194
194
[
195
195
$this,
196
196
'display_graphql_field_group_fields',
@@ -217,8 +217,8 @@ public function display_graphql_field_group_fields( $field_group ): void {
217
217
// Render a field in the Field Group settings to allow for a Field Group to be shown in GraphQL.
218
218
acf_render_field_wrap(
219
219
[
220
-
'label' => __( 'Show in GraphQL', 'wp-graphql-acf' ),
221
-
'instructions' => __( 'If the field group is active, and this is set to show, the fields in this group will be available in the WPGraphQL Schema based on the respective Location rules. NOTE: Changing a field "show_in_graphql" to "false" could create breaking changes for client applications already querying for this field group.', 'wp-graphql-acf' ),
220
+
'label' => __( 'Show in GraphQL', 'wpgraphql-acf' ),
221
+
'instructions' => __( 'If the field group is active, and this is set to show, the fields in this group will be available in the WPGraphQL Schema based on the respective Location rules. NOTE: Changing a field "show_in_graphql" to "false" could create breaking changes for client applications already querying for this field group.', 'wpgraphql-acf' ),
222
222
'type' => 'true_false',
223
223
'name' => 'show_in_graphql',
224
224
'prefix' => 'acf_field_group',
@@ -233,13 +233,13 @@ public function display_graphql_field_group_fields( $field_group ): void {
233
233
// Render a field in the Field Group settings to set the GraphQL field name for the field group.
234
234
acf_render_field_wrap(
235
235
[
236
-
'label' => __( 'GraphQL Type Name', 'wp-graphql-acf' ),
237
-
'instructions' => __( 'The GraphQL Type name representing the field group in the GraphQL Schema. Must start with a letter. Can only contain Letters, Numbers and underscores. Best practice is to use "PascalCase" for GraphQL Types.', 'wp-graphql-acf' ),
236
+
'label' => __( 'GraphQL Type Name', 'wpgraphql-acf' ),
237
+
'instructions' => __( 'The GraphQL Type name representing the field group in the GraphQL Schema. Must start with a letter. Can only contain Letters, Numbers and underscores. Best practice is to use "PascalCase" for GraphQL Types.', 'wpgraphql-acf' ),
@@ -249,8 +249,8 @@ public function display_graphql_field_group_fields( $field_group ): void {
249
249
250
250
acf_render_field_wrap(
251
251
[
252
-
'label' => __( 'Manually Set GraphQL Types for Field Group', 'wp-graphql-acf' ),
253
-
'instructions' => __( 'By default, ACF Field groups are added to the GraphQL Schema based on the field group\'s location rules. Checking this box will let you manually control the GraphQL Types the field group should be shown on in the GraphQL Schema using the checkboxes below, and the Location Rules will no longer effect the GraphQL Types.', 'wp-graphql-acf' ),
252
+
'label' => __( 'Manually Set GraphQL Types for Field Group', 'wpgraphql-acf' ),
253
+
'instructions' => __( 'By default, ACF Field groups are added to the GraphQL Schema based on the field group\'s location rules. Checking this box will let you manually control the GraphQL Types the field group should be shown on in the GraphQL Schema using the checkboxes below, and the Location Rules will no longer effect the GraphQL Types.', 'wpgraphql-acf' ),
// translators: %s is the GraphQL Type Name representing an ACF Field Group in the GraphQL Schema
291
-
'instructions' => sprintf( __( "These are the GraphQL Interfaces implemented by the '%s' GraphQL Type", 'wp-graphql-acf' ), $field_group_type_name ),
291
+
'instructions' => sprintf( __( "These are the GraphQL Interfaces implemented by the '%s' GraphQL Type", 'wpgraphql-acf' ), $field_group_type_name ),
292
292
'type' => 'message',
293
293
'name' => 'graphql_interfaces',
294
294
'prefix' => 'acf_field_group',
@@ -344,9 +344,9 @@ public function add_field_settings( array $field, ?string $field_type = null ):
344
344
$admin_field_settings = [
345
345
'not_supported' => [
346
346
'type' => 'message',
347
-
'label' => __( 'Not supported in the GraphQL Schema', 'wp-graphql-acf' ),
347
+
'label' => __( 'Not supported in the GraphQL Schema', 'wpgraphql-acf' ),
348
348
// translators: %s is the name of the ACF Field Type
349
-
'instructions' => sprintf( __( 'The "%s" Field Type is not set up to map to the GraphQL Schema. If you want to query this field type in the Schema, visit our guide for <a href="" target="_blank" rel="nofollow">adding GraphQL support for additional ACF field types</a>.', 'wp-graphql-acf' ), $field_type ),
349
+
'instructions' => sprintf( __( 'The "%s" Field Type is not set up to map to the GraphQL Schema. If you want to query this field type in the Schema, visit our guide for <a href="" target="_blank" rel="nofollow">adding GraphQL support for additional ACF field types</a>.', 'wpgraphql-acf' ), $field_type ),
350
350
'conditions' => [],
351
351
],
352
352
];
@@ -389,8 +389,8 @@ public function add_field_settings( array $field, ?string $field_type = null ):
0 commit comments