premetto che non mi so muovere molto in php
questo codice mi crea 2 tasti: "Preview comment" e "Send comment"
vorrei eliminare (è sufficiente che il tasto NON appaia più) il tasto "Preview comment" e lasciare solo l'altro tasto.
cosa devo fare?
codice:
// add required fields and buttons
$content = preg_replace('/<input[^>]*type="submit"[^>]*>/', '
<noscript>If you have enabled JavaScript, you will be able to preview your comment before submitting.
</noscript>
<input type="hidden" name="author" id="actualauthor" value="" />
<span id="previewbutton"><input name="preview" type="submit" id="preview" tabindex="5" value="' . __('Preview comment', 'wp-commentpreview') . '" onclick="return dosubmit(1, pre_url);" /></span>
<span id="submitbutton"><input name="submit" type="submit" id="submit" tabindex="6" value="Send comment" onclick="return dosubmit(0, sub_url);" /></span>
', $content);