graphql_media_item_create_allowed_protocols

apply_filters( 'graphql_media_item_create_allowed_protocols', $allowed_protocols, $protocol, $input, $context, $info );

Filter the allowed protocols for the mutation

  • Type: filter
  • Group: Model Layer
  • Since: 0.0.5
  • Source File: plugins/wp-graphql/src/Mutation/MediaItemCreate.php

Parameters

  • $allowed_protocols (string[]): The allowed protocols for filePaths to be submitted
  • $protocol (mixed): The current protocol of the filePath
  • $input (array<string,mixed>): The input of the current mutation
  • $context (\WPGraphQL\AppContext): The context of the current request
  • $info (\GraphQL\Type\Definition\ResolveInfo): The ResolveInfo of the current field

Source

apply_filters( 'graphql_media_item_create_allowed_protocols', $allowed_protocols, $protocol, $input, $context, $info );