Preview: access-functions.php
Size: 418 B
/var/www/candid-stg.bitkit.dk/httpdocs/wp-content/plugins/wpgraphql-acf/access-functions.php
<?php
/**
* @param string $acf_field_type
* @param array<mixed>|callable $config
*/
function register_graphql_acf_field_type( string $acf_field_type, $config = [] ): void {
add_action(
'wpgraphql/acf/register_field_types',
static function ( \WPGraphQL\Acf\FieldTypeRegistry $registry ) use ( $acf_field_type, $config ) {
$registry->register_field_type( $acf_field_type, $config );
}
);
}
Directory Contents
Dirs: 3 × Files: 10