Skip to content

Commit

Permalink
Update since statements
Browse files Browse the repository at this point in the history
  • Loading branch information
dkotter committed Dec 18, 2024
1 parent c4f92ca commit e740b42
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion includes/Classifai/Admin/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions includes/Classifai/Admin/templates/onboarding-step-three.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion includes/Classifai/Features/ImageTagsGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 6 additions & 6 deletions includes/Classifai/Features/TermCleanup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions includes/Classifai/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
14 changes: 7 additions & 7 deletions includes/Classifai/Providers/Browser/ChromeAI.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion includes/Classifai/Providers/OpenAI/Moderation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion includes/Classifai/TermCleanupScheduler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e740b42

Please sign in to comment.