Developer reference
The public extension points of Aimogen Pro - PHP API, REST API, WP-CLI, hooks, webhooks, data model and capabilities.
Aimogen Pro exposes several public interfaces. This section documents what is safe to build on.
Stable versus internal#
Naming#
Technical identifiers use the aiomatic prefix, retained deliberately across the rename. Identifiers added
after the rename use aimogen. Where both exist for the same purpose — the API key filters — the
aiomatic one runs after the aimogen one, so a legacy filter still has the final word:
$token = apply_filters( 'aimogen_openai_api_key', $token );
$token = apply_filters( 'aiomatic_openai_api_key', $token );See Legacy Aiomatic identifiers.
Where to put your code#
A site-specific plugin or a child theme functions.php are both fine. For small pieces, the
AI Snippets Engine provides a managed alternative with validation and fatal-error
protection.
Checking availability#
if ( function_exists( 'aimogen' ) ) {
// The PHP API is available.
}
if ( defined( 'AIMOGEN_IS_PRO' ) ) {
// Aimogen Pro is active.
}
if ( defined( 'AIMOGEN_MAJOR_VERSION' ) ) {
// Version string, "2.8.8" at the time of writing.
}Related#
Still stuck? Open a support ticket and include the diagnostics from Aimogen Pro › System & Logs › System Info.