diff --git a/acpl-ai-alt-generator.php b/acpl-ai-alt-generator.php index b69b714..1721ee2 100644 --- a/acpl-ai-alt-generator.php +++ b/acpl-ai-alt-generator.php @@ -58,7 +58,7 @@ public static function error_log( WP_Error $error ): WP_Error { private function enqueue_script( string $file_name, array|bool $args = false ): void { $asset_file = include ACPL_AI_ALT_PLUGIN_PATH . "build/$file_name.asset.php"; - $handle = "acp/ai-alt-generator/$file_name"; + $handle = "acpl/ai-alt-generator/$file_name"; wp_enqueue_script( $handle, ACPL_AI_ALT_PLUGIN_URL . "build/$file_name.js", $asset_file['dependencies'], $asset_file['version'], $args ); wp_set_script_translations( $handle, 'acpl-ai-alt-generator' ); } diff --git a/includes/AltGenerator.php b/includes/AltGenerator.php index ab3704a..9443ad0 100644 --- a/includes/AltGenerator.php +++ b/includes/AltGenerator.php @@ -25,7 +25,7 @@ public static function generate_alt_text( int $attachment_id ): string|WP_Error $language = locale_get_display_language( $locale ); $user_prompt = apply_filters( - 'acp/ai_alt_generator/user_prompt', + 'acpl/ai_alt_generator/user_prompt', "Generate a high-quality and concise alt text in $language ($locale) for the provided image without adding any additional comments.", $locale, $language diff --git a/src/editor/index.tsx b/src/editor/index.tsx index d3164fa..5ef087c 100644 --- a/src/editor/index.tsx +++ b/src/editor/index.tsx @@ -24,7 +24,7 @@ const withGenerateAltButton = addFilter( "editor.BlockEdit", - "acp/ai-alt-generator", + "acpl/ai-alt-generator", withGenerateAltButton, 20, );