File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -34,21 +34,16 @@ private function register_fields(): void {
3434 register_graphql_fields (
3535 $ this ->type_name ,
3636 [
37- 'prefix ' => [
37+ 'prefix ' => [
3838 'type ' => 'String ' ,
3939 'description ' => __ ( 'Prefix to display before the post terms ' , 'wp-graphql-content-blocks ' ),
4040 'resolve ' => static fn ( $ block ) => isset ( $ block ['attrs ' ]['prefix ' ] ) ? (string ) $ block ['attrs ' ]['prefix ' ] : null ,
4141 ],
42- 'suffix ' => [
42+ 'suffix ' => [
4343 'type ' => 'String ' ,
4444 'description ' => __ ( 'Suffix to display after the post terms ' , 'wp-graphql-content-blocks ' ),
4545 'resolve ' => static fn ( $ block ) => isset ( $ block ['attrs ' ]['suffix ' ] ) ? (string ) $ block ['attrs ' ]['suffix ' ] : null ,
4646 ],
47- 'taxonomySlug ' => [
48- 'type ' => 'String ' ,
49- 'description ' => __ ( 'The taxonomy slug to display terms from ' , 'wp-graphql-content-blocks ' ),
50- 'resolve ' => static fn ( $ block ) => isset ( $ block ['attrs ' ]['term ' ] ) ? (string ) $ block ['attrs ' ]['term ' ] : null ,
51- ],
5247 ]
5348 );
5449 }
You can’t perform that action at this time.
0 commit comments