From e740b42c02b3f496bed121a45512668b4a9ed9a0 Mon Sep 17 00:00:00 2001 From: Darin Kotter Date: Wed, 18 Dec 2024 09:01:47 -0700 Subject: [PATCH] Update since statements --- includes/Classifai/Admin/Settings.php | 2 +- .../Admin/templates/onboarding-step-three.php | 4 ++-- includes/Classifai/Features/ImageTagsGenerator.php | 2 +- includes/Classifai/Features/TermCleanup.php | 12 ++++++------ includes/Classifai/Helpers.php | 6 +++--- includes/Classifai/Providers/Browser/ChromeAI.php | 14 +++++++------- includes/Classifai/Providers/OpenAI/Moderation.php | 2 +- includes/Classifai/TermCleanupScheduler.php | 2 +- 8 files changed, 22 insertions(+), 22 deletions(-) diff --git a/includes/Classifai/Admin/Settings.php b/includes/Classifai/Admin/Settings.php index 72864fd6c..92568ebc9 100644 --- a/includes/Classifai/Admin/Settings.php +++ b/includes/Classifai/Admin/Settings.php @@ -205,7 +205,7 @@ public function get_nlu_taxonomies(): array { /** * Filter IBM Watson NLU taxonomies shown in settings. * - * @since x.x.x + * @since 3.2.0 * @hook classifai_settings_ibm_watson_nlu_taxonomies * * @param {array} $taxonomies Array of IBM Watson NLU taxonomies. diff --git a/includes/Classifai/Admin/templates/onboarding-step-three.php b/includes/Classifai/Admin/templates/onboarding-step-three.php index d9ec286a6..031bb9e2d 100644 --- a/includes/Classifai/Admin/templates/onboarding-step-three.php +++ b/includes/Classifai/Admin/templates/onboarding-step-three.php @@ -62,7 +62,7 @@ /** * Fires before the settings form for a feature. * - * @since x.x.x + * @since 3.2.0 * @hook classifai_before_onboarding_feature_settings_form * * @param {string} $current_feature Current feature. @@ -89,7 +89,7 @@ /** * Fires after the settings form for a feature. * - * @since x.x.x + * @since 3.2.0 * @hook classifai_after_onboarding_feature_settings_form * * @param {string} $current_feature Current active feature. diff --git a/includes/Classifai/Features/ImageTagsGenerator.php b/includes/Classifai/Features/ImageTagsGenerator.php index ff0f82162..0ac19892c 100644 --- a/includes/Classifai/Features/ImageTagsGenerator.php +++ b/includes/Classifai/Features/ImageTagsGenerator.php @@ -372,7 +372,7 @@ public function get_taxonomies( array $object_types = [] ): array { /** * Filter taxonomies shown in settings. * - * @since x.x.x + * @since 3.2.0 * @hook classifai_feature_image_tags_generator_setting_taxonomies * * @param {array} $supported Array of supported image taxonomies. diff --git a/includes/Classifai/Features/TermCleanup.php b/includes/Classifai/Features/TermCleanup.php index 1b630b77f..8c27d379d 100644 --- a/includes/Classifai/Features/TermCleanup.php +++ b/includes/Classifai/Features/TermCleanup.php @@ -314,7 +314,7 @@ public function get_embeddings_meta_key(): string { /** * Filter the meta key for embeddings. * - * @since x.x.x + * @since 3.2.0 * @hook classifai_feature_term_cleanup_embeddings_meta_key * * @param {string} $meta_key Meta key for embeddings. @@ -494,7 +494,7 @@ public function generate_embeddings( string $taxonomy ) { /** * Fires when an embedding is generated for a term. * - * @since x.x.x + * @since 3.2.0 * @hook classifai_feature_term_cleanup_generate_embedding * * @param {int} $term_id ID of term. @@ -995,7 +995,7 @@ public function merge_term() { /** * Fires before terms are merged together. * - * @since x.x.x + * @since 3.2.0 * @hook classifai_feature_term_cleanup_pre_merge_term * * @param {int} $from Term ID being merged. @@ -1016,7 +1016,7 @@ public function merge_term() { /** * Fires after terms are merged together. * - * @since x.x.x + * @since 3.2.0 * @hook classifai_feature_term_cleanup_post_merge_term * * @param {int} $from Term ID being merged. @@ -1070,7 +1070,7 @@ public function skip_similar_term() { /** * Fires before a term is skipped. * - * @since x.x.x + * @since 3.2.0 * @hook classifai_feature_term_cleanup_pre_skip_term * * @param {int} $term Term ID being skipped. @@ -1093,7 +1093,7 @@ public function skip_similar_term() { /** * Fires after a term is skipped. * - * @since x.x.x + * @since 3.2.0 * @hook classifai_feature_term_cleanup_post_skip_term * * @param {int} $term Term ID being skipped. diff --git a/includes/Classifai/Helpers.php b/includes/Classifai/Helpers.php index 6ec89c371..ef9ceec74 100644 --- a/includes/Classifai/Helpers.php +++ b/includes/Classifai/Helpers.php @@ -664,15 +664,15 @@ function get_classification_mode(): string { /** * Determine if the legacy settings panel should be used. * - * @since x.x.x + * @since 3.2.0 * * @return bool */ function should_use_legacy_settings_panel(): bool { /** - * Filter to determine if the legacy settings panel should be used.' + * Filter to determine if the legacy settings panel should be used. * - * @since x.x.x + * @since 3.2.0 * @hook classifai_use_legacy_settings_panel * * @param {bool} $use_legacy_settings_panel Whether to use the legacy settings panel. diff --git a/includes/Classifai/Providers/Browser/ChromeAI.php b/includes/Classifai/Providers/Browser/ChromeAI.php index 49509b0ed..ef8ad1668 100644 --- a/includes/Classifai/Providers/Browser/ChromeAI.php +++ b/includes/Classifai/Providers/Browser/ChromeAI.php @@ -141,7 +141,7 @@ public function generate_excerpt( int $post_id = 0, array $args = [] ) { /** * Filter the prompt we will send to Chrome AI. * - * @since x.x.x + * @since 3.2.0 * @hook classifai_chrome_ai_excerpt_prompt * * @param {string} $prompt Prompt we are sending. Gets added before post content. @@ -155,7 +155,7 @@ public function generate_excerpt( int $post_id = 0, array $args = [] ) { /** * Filter the request body before sending to Chrome AI. * - * @since x.x.x + * @since 3.2.0 * @hook classifai_chrome_ai_excerpt_request_body * * @param {array} $body Request body that will be sent. @@ -208,7 +208,7 @@ public function generate_title( int $post_id = 0, array $args = [] ) { /** * Filter the prompt we will send to Chrome AI. * - * @since x.x.x + * @since 3.2.0 * @hook classifai_chrome_ai_title_prompt * * @param {string} $prompt Prompt we are sending. Gets added before post content. @@ -222,7 +222,7 @@ public function generate_title( int $post_id = 0, array $args = [] ) { /** * Filter the request body before sending to Azure OpenAI. * - * @since x.x.x + * @since 3.2.0 * @hook classifai_chrome_ai_title_request_body * * @param {array} $body Request body that will be sent. @@ -267,7 +267,7 @@ public function resize_content( int $post_id, array $args = array() ) { /** * Filter the resize prompt we will send to Chrome AI. * - * @since x.x.x + * @since 3.2.0 * @hook classifai_chrome_ai_' . $args['resize_type'] . '_content_prompt * * @param {string} $prompt Resize prompt we are sending. Gets added as a system prompt. @@ -281,7 +281,7 @@ public function resize_content( int $post_id, array $args = array() ) { /** * Filter the resize request body before sending to Chrome AI. * - * @since x.x.x + * @since 3.2.0 * @hook classifai_chrome_ai_resize_content_request_body * * @param {array} $body Request body that will be sent. @@ -353,7 +353,7 @@ public function get_content( int $post_id = 0, int $return_length = 0, bool $use /** * Filter content that will get sent to Chrome AI. * - * @since x.x.x + * @since 3.2.0 * @hook classifai_chrome_ai_content * * @param {string} $content Content that will be sent. diff --git a/includes/Classifai/Providers/OpenAI/Moderation.php b/includes/Classifai/Providers/OpenAI/Moderation.php index 82e104370..75587049e 100644 --- a/includes/Classifai/Providers/OpenAI/Moderation.php +++ b/includes/Classifai/Providers/OpenAI/Moderation.php @@ -50,7 +50,7 @@ public function get_model(): string { * Useful if you want to use a different model, like * text-moderation-latest. * - * @since x.x.x + * @since 3.2.0 * @hook classifai_openai_moderation_model * * @param {string} $model The default model to use. diff --git a/includes/Classifai/TermCleanupScheduler.php b/includes/Classifai/TermCleanupScheduler.php index 618dad28e..a0f8d83cc 100644 --- a/includes/Classifai/TermCleanupScheduler.php +++ b/includes/Classifai/TermCleanupScheduler.php @@ -97,7 +97,7 @@ public function run( array $item = [] ) { /** * Fires when a batch of similar terms are calculated. * - * @since x.x.x + * @since 3.2.0 * @hook classifai_feature_term_cleanup_get_similar_terms * * @param {array|bool|WP_Error} $res Response from the get_similar_terms method.