Deja una respuesta

// ========================================================================= // 5. INYECCIÓN SEGURA DEL BOTÓN Y SCRIPT // ========================================================================= add_filter( 'the_content', 'cmeh_inyectar_boton_audio_post' ); function cmeh_inyectar_boton_audio_post( $content ) { // Solo en posts individuales if ( ! is_single() || ! in_the_loop() || ! is_main_query() ) return $content; $boton = '
'; return $boton . $content; } add_action( 'wp_footer', 'cmeh_script_audio_multilingue' ); function cmeh_script_audio_multilingue() { if ( ! is_single() ) return; ?>