Skip to content

Instantly share code, notes, and snippets.

@RhythmShahriar
Created September 30, 2013 15:00
Show Gist options
  • Save RhythmShahriar/6765077 to your computer and use it in GitHub Desktop.
Save RhythmShahriar/6765077 to your computer and use it in GitHub Desktop.
<?php
/**-------------------------------------------
* @package Genesis Comment Section
* @link http://rhythmshahriar.com
* @author Rhythm <rhy@rhythmshahriar.com>
* @copyright Copyright (c) 2013, Rhythm Shahriar
-------------------------------------------------*/
/**Customize The Comment Form in Genesis 2.0 Html5*/
add_filter( 'comment_form_defaults', 'rhythm_custom_comment_form' );
function rhythm_custom_comment_form($fields) {
$fields['comment_notes_before'] = 'Your Notic Text'; //Leave it Empty to Removes Email Privacy Notice ex: $fields['comment_notes_before'] = '';
$fields['title_reply'] = __( 'Shoot Your Comment', 'customtheme' ); //Changes The Form Headline
$fields['label_submit'] = __( 'Button Name', 'customtheme' ); //Changes The Submit Button Text
$fields['comment_notes_after'] = 'Allowed Text'; //Leave it Empty to Removes Form Allowed Tags Box
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment