Code Editor
ACF Extended
Last Upated: Wednesday, Jan 31, 2024
acfe_code_editor
The Code Editor is a custom ACF Field Type made available by the Advanced Custom Fields Extended plugin.
Resolve Type
Fields of the "acfe_code_editor" field type resolve to a "String" in the GraphQL Schema.
Field Settings
Field Configuration
<?phpadd_action( 'acf/include_fields', function() { if ( ! function_exists( 'acf_add_local_field_group' ) ) { return; } acf_add_local_field_group( [ { "key": "my_field_group_", "title": "My Field Group with acfe_code_editor", "show_in_graphql": 1, "graphql_field_name": "myFieldGroupWithAcfeCodeEditor", "map_graphql_types_from_location_rules": 0, "graphql_types": [ "Page" ], "fields": [ { "key": "my_field_", "label": "My Field", "name": "my_field", "type": "acfe_code_editor", "show_in_graphql": 1, "graphql_field_name": "myFieldWithAcfeCodeEditor" } ], "location": [ [ { "param": "post_type", "operator": "==", "value": "page" } ] ] } ] );});