[wp-trac] [WordPress Trac] #64924: Add a `has_ai_credentials()` function to WordPress core that plugins can use to check if AI credentials are available.

WordPress Trac noreply at wordpress.org
Mon Mar 23 02:54:07 UTC 2026


#64924: Add a `has_ai_credentials()` function to WordPress core that plugins can
use to check if AI credentials are available.
-------------------------+--------------------------------------------
 Reporter:  raftaar1191  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  AI           |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  2nd-opinion  |     Focuses:  accessibility, sustainability
-------------------------+--------------------------------------------

Comment (by lakshmananphp):

 nice suggestion, @raftaar1191 do you mean
 https://core.trac.wordpress.org/browser/trunk/src/wp-includes/ai-
 client.php location?

 Can we also add {{{has_valid_ai_credentials}}}, if not already there.

   https://github.com/WordPress/ai/blob/trunk/includes/helpers.php#L336

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64924#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list