gcoai_image_models

  1. Description
  2. Usage
  3. Parameters
  4. Since

Description

Filter the models offered by the OpenAI Image field. A model added here is listed in the form editor and behaves as a member of the gpt-image- family if it is named like one. Set background to true to offer the Transparent Background setting for it. New fields start on the first model listed that is not deprecated.

Usage

Applied globally

add_filter( 'gcoai_image_models', 'my_custom_function' );

Parameters

$models array<string, array{label?: string, background?: bool}>

Model name => info.

Since

  • 1.1.3 Hook added.