This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shortcode: | |
[ai_image prompt="Descripción de la imagen que quieres"] | |
Añadir en functions.php: | |
function generate_image_from_prompt($atts) { | |
$atts = shortcode_atts(array('prompt' => ''), $atts); | |
$prompt = $atts['prompt']; | |
// Lógica para obtener la imagen de la API en función del prompt |