• kailonka

    (@kailonka)


    Great and easy to use plugin. Thanks for this.
    I just wished for one little improvement.
    The additional prompt, which I can write while in bulk edit, can that be saved? So I do not need to enter it again?
    Or maybe let us define a user prompt in the Settings -> Media, where we provide our API key. That would be awesome.

    • This topic was modified 1 month, 4 weeks ago by kailonka.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Rafa? Ca?ka

    (@rafaucau)

    We plan to implement this functionality in a future update.

    In the meantime, if you’re comfortable with some basic coding, there’s a workaround you can use. You can add the following code to your theme’s functions.php file or another file that you control:

    add_filter('acpl/ai_alt_generator/user_prompt', function($user_prompt, $attachment_id, $locale, $language) {
    if( empty($user_prompt) ) {
    $user_prompt = 'Your Custom Prompt here...';
    }
    return $user_prompt;
    }, 10, 4);

    Replace ‘Your Custom Prompt here…’ with the prompt you want to use by default.

    This code will use your custom prompt only when the custom prompt field is left empty during generation.

    Thread Starter kailonka

    (@kailonka)

    Awesome, good to know this function will be implemented in the future.

    And thank you for the code snipped, implemented it and it works like a charm.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this review.