PATH:
home
/
bnathsfovv
/
lm2017.info
/
wp-includes
<?php /** * WordPress AI Client API. * * @package WordPress * @subpackage AI * @since 7.0.0 */ use WordPress\AiClient\AiClient; use WordPress\AiClient\Messages\DTO\Message; use WordPress\AiClient\Messages\DTO\MessagePart; /** * Returns whether AI features are supported in the current environment. * * @since 7.0.0 * * @return bool Whether AI features are supported. */ function wp_supports_ai(): bool { // Return early if AI is disabled by the current environment. if ( defined( 'WP_AI_SUPPORT' ) && ! WP_AI_SUPPORT ) { return false; } /** * Filters whether the current request can use AI. * * This allows plugins and 3rd-party code to disable AI features on a per-request basis, or to even override explicit * preferences defined by the site owner. * * @since 7.0.0 * * @param bool $is_enabled Whether AI is available. Default to true. */ return (bool) apply_filters( 'wp_supports_ai', true ); } /** * Creates a new AI prompt builder using the default provider registry. * * This is the main entry point for generating AI content in WordPress. It returns * a fluent builder that can be used to configure and execute AI prompts. * * The prompt can be provided as a simple string for basic text prompts, or as more * complex types for advanced use cases like multi-modal content or conversation history. * * @since 7.0.0 * * @param string|MessagePart|Message|array|list<string|MessagePart|array>|list<Message>|null $prompt Optional. Initial prompt content. * A string for simple text prompts, * a MessagePart or Message object for * structured content, an array for a * message array shape, or a list of * parts or messages for multi-turn * conversations. Default null. * @return WP_AI_Client_Prompt_Builder The prompt builder instance. */ function wp_ai_client_prompt( $prompt = null ): WP_AI_Client_Prompt_Builder { return new WP_AI_Client_Prompt_Builder( AiClient::defaultRegistry(), $prompt ); }
[+]
..
[-] block-editor.php
[edit]
[+]
fonts
[-] fonts.php
[edit]
[+]
ID3
[-] error-protection.php
[edit]
[-] class-wp-theme.php
[edit]
[+]
blocks
[-] class-wp-oembed.php
[edit]
[-] class-wp-recovery-mode-email-service.php
[edit]
[-] class-wp-simplepie-file.php
[edit]
[+]
Text
[-] theme-i18n.json
[edit]
[-] session.php
[edit]
[+]
build
[-] default-constants.php
[edit]
[-] class-wp-hook.php
[edit]
[-] abilities-api.php
[edit]
[+]
Requests
[-] class-wp-text-diff-renderer-table.php
[edit]
[-] robots-template.php
[edit]
[-] revision.php
[edit]
[-] class-wp-list-util.php
[edit]
[+]
sodium_compat
[-] cache.php
[edit]
[+]
block-supports
[-] class-walker-page.php
[edit]
[-] embed.php
[edit]
[+]
rest-api
[+]
customize
[-] shortcodes.php
[edit]
[-] class-wp.php
[edit]
[-] meta.php
[edit]
[+]
theme-compat
[-] pluggable-deprecated.php
[edit]
[-] class-wp-customize-manager.php
[edit]
[+]
php-compat
[-] class-wp-http-cookie.php
[edit]
[-] bookmark.php
[edit]
[-] class-wp-text-diff-renderer-inline.php
[edit]
[-] class-wp-block-bindings-registry.php
[edit]
[-] class-pop3.php
[edit]
[-] locale.php
[edit]
[-] class-wp-block-list.php
[edit]
[+]
IXR
[-] class-wp-rewrite.php
[edit]
[+]
images
[-] registration.php
[edit]
[+]
abilities-api
[+]
SimplePie
[-] class-wp-comment.php
[edit]
[-] user.php
[edit]
[-] class-phpass.php
[edit]
[-] class-wp-fatal-error-handler.php
[edit]
[-] general-template.php
[edit]
[+]
PHPMailer
[-] class-wp-recovery-mode-cookie-service.php
[edit]
[-] feed-rss2.php
[edit]
[-] cron.php
[edit]
[+]
css
[-] connectors.php
[edit]
[-] class-wp-block-type.php
[edit]
[-] block-patterns.php
[edit]
[+]
html-api
[+]
widgets
[-] class-wp-paused-extensions-storage.php
[edit]
[-] nav-menu-template.php
[edit]
[-] class-walker-category-dropdown.php
[edit]
[-] link-template.php
[edit]
[-] class-json.php
[edit]
[-] feed.php
[edit]
[-] template-loader.php
[edit]
[+]
style-engine
[-] post-formats.php
[edit]
[-] class-wp-connector-registry.php
[edit]
[-] post-template.php
[edit]
[-] feed-rss.php
[edit]
[+]
sitemaps
[-] class-wp-widget-factory.php
[edit]
[-] class-wp-block-pattern-categories-registry.php
[edit]
[+]
block-bindings
[-] class-wp-recovery-mode-key-service.php
[edit]
[-] class-wp-icons-registry.php
[edit]
[+]
certificates
[-] class-wp-block-editor-context.php
[edit]
[-] spl-autoload-compat.php
[edit]
[-] class-wp-matchesmapregex.php
[edit]
[-] ms-settings.php
[edit]
[-] media.php
[edit]
[-] class-wp-user-meta-session-tokens.php
[edit]
[-] class-wp-role.php
[edit]
[-] class-wp-date-query.php
[edit]
[-] class-oembed.php
[edit]
[+]
interactivity-api
[-] class-wp-http-streams.php
[edit]
[-] sitemaps.php
[edit]
[-] class-wp-block-supports.php
[edit]
[+]
assets
[-] class-wp-theme-json.php
[edit]
[-] class-wp-tax-query.php
[edit]
[-] class-wp-user.php
[edit]
[-] class-wp-session-tokens.php
[edit]
[-] default-widgets.php
[edit]
[-] class-wp-classic-to-block-menu-converter.php
[edit]
[-] class-wp-ajax-response.php
[edit]
[-] cache-compat.php
[edit]
[-] class-wp-block-type-registry.php
[edit]
[-] bookmark-template.php
[edit]
[-] class-wp-plugin-dependencies.php
[edit]
[-] class-wp-token-map.php
[edit]
[-] block-bindings.php
[edit]
[+]
php-ai-client
[+]
ai-client
[-] class-wp-block-templates-registry.php
[edit]
[-] ms-default-filters.php
[edit]
[-] block-i18n.json
[edit]
[+]
block-patterns
[-] class-walker-comment.php
[edit]
[+]
js
[-] vars.php
[edit]
[-] theme-previews.php
[edit]
[-] class-wp-network.php
[edit]
[-] ms-default-constants.php
[edit]
[+]
pomo
[-] class-wp-recovery-mode-link-service.php
[edit]
[-] default-filters.php
[edit]
[-] kses.php
[edit]
[-] rss.php
[edit]
[-] class-wp-block-styles-registry.php
[edit]
[-] ai-client.php
[edit]
[-] class-wp-post-type.php
[edit]
[+]
l10n
[-] ms-files.php
[edit]
[-] global-styles-and-settings.php
[edit]
[-] blocks.php
[edit]