Skip to content

Commit

Permalink
refactor: update prefixes in hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaucau committed Jan 6, 2024
1 parent 225210a commit 3b42005
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion acpl-ai-alt-generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
}
Expand Down
2 changes: 1 addition & 1 deletion includes/AltGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const withGenerateAltButton =

addFilter(
"editor.BlockEdit",
"acp/ai-alt-generator",
"acpl/ai-alt-generator",
withGenerateAltButton,
20,
);
Expand Down

0 comments on commit 3b42005

Please sign in to comment.