Skip to content

Instantly share code, notes, and snippets.

@fikrirasyid
Created March 12, 2015 02:14
Show Gist options
  • Save fikrirasyid/d9e83deb4e73fa964d72 to your computer and use it in GitHub Desktop.
Save fikrirasyid/d9e83deb4e73fa964d72 to your computer and use it in GitHub Desktop.
Ajaxifying Comment - Add "submitting comment" message:
/**
* Adding processing message at comment form
* Use inline style so we don't need to load more file
*/
function simple_ajax_comment_form_mod( $settings ){
printf( '<div id="submitting-comment" style="padding: 15px 20px; text-align: center; display: none;">%s</div>', __( 'Submitting comment...' ) );
}
add_action( 'comment_form', 'simple_ajax_comment_form_mod' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment