gcoai_deprecated_image_models

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

Description

Filter the image models OpenAI is shutting down, keyed by shutdown date in Y-m-d format. A model listed here is hidden from the Image field’s model list unless already selected, labelled as deprecated when shown, and warned about in the form editor.

Usage

Applied globally

add_filter( 'gcoai_deprecated_image_models', 'my_custom_function' );

Parameters

$deprecated array<string, string[]>

Y-m-d => model names.

Since

  • 1.1.3 Hook added.