Site docs are currently being updated 🚧 Thank you for your patience! 🙏

Currencies

ACF Extended Pro
Last Upated: Thursday, Feb 1, 2024

acfe_currencies

The Currencies field is a custom ACF Field Type made available by the Advanced Custom Fields Extended PRO plugin.

Resolve Type

Fields of the acfe_currencies field type resolve to a "List of ACFE_Currency" in the GraphQL Schema. This supports singular and multiple selections as a list can be either one or more than one values.

Types Added to the Schema

To support the Currencies field type in the GraphQL Schema, additional GraphQL Object Types are added to the Schema.

  • ACFE_Currency (object type): The Object Type representing a Currency with fields such as "name", "continent", "code" and more.

Field Settings

Field Configuration

<?php
add_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_currencies",
"show_in_graphql": 1,
"graphql_field_name": "myFieldGroupWithAcfeCurrencies",
"map_graphql_types_from_location_rules": 0,
"graphql_types": [
"Page"
],
"fields": [
{
"key": "my_field_",
"label": "My Field",
"name": "my_field",
"type": "acfe_currencies",
"show_in_graphql": 1,
"graphql_field_name": "myFieldWithAcfeCurrencies"
}
],
"location": [
[
{
"param": "post_type",
"operator": "==",
"value": "page"
}
]
]
}
]
);
});

Querying the Currencies field